Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
go.dev: Examples title is not generated, anchor link to examples is not working #37198
There was an issue in the template for the edge case when a package has examples, but no exported identifiers.
The fix is to display the "Index" section (which includes the "Examples" subsection) in that case, so that the link on top is valid. This is consistent with x/tools/cmd/godoc and gddo. I've sent a fix CL.
Edit: The fix CL has been submitted, so this should be fixed next time pkg.go.dev is deployed and the documentation for the affected package(s) is updated.