x/website, x/pkgsite: net/http.ServeMux.Handle example reads poorly if shown as a complete program #40103
Labels
Documentation
Issues describing a change to documentation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
In current package documentation at https://golang.org/pkg/net/http/#example_ServeMux_Handle
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you expect to see?
Expected example to initiate http.ListenAndServe or equivalent with new ServeMux
What did you see instead?
The example immediately exits without serving
I'd be happy to work on this for my first contribution if accepted
The text was updated successfully, but these errors were encountered: