Go web server shuts down

Thanks, but should there not be an if statement also? Or is it not needed? Like:

err := http.ListenAndServe(":5050", nil)
if err != nil {
	fmt.Println("%v", err)
}