Nothing in this tutorial https://golang.org/doc/articles/wiki/Writing Web Applications, in the Articles section of documentation, seems to indicate that ListenAndServe may return an error. Errors should be checked.
The documentation pointed by @joneskoo is indeed failing silently if http.ListenAndServe returns an error.
Since we're not using the Shutdown method, I'd say that it's safe to simply add log.Fatal.
I'll send a CL
Nothing in this tutorial https://golang.org/doc/articles/wiki/ Writing Web Applications, in the Articles section of documentation, seems to indicate that ListenAndServe may return an error. Errors should be checked.
Since I don't see an issue opened by @campoy , I'm opening one.
EDIT: Clarified that the issue is in Article, not the package documentation.
The text was updated successfully, but these errors were encountered: