Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
doc: Writing web applications ignores error from ListenAndServe #19511
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 error isn't ignored in the example. It was first logged, then caused an os.Exit(1)