x/pkgsite: example code should be displayed as package main when rendering #37291
Labels
FrozenDueToAge
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite
Milestone
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/reddit/[email protected]/thriftclient?tab=doc#example-package
What did you expect to see?
On godoc.org, the
Example*
functions will be renamed to main when rendering, for example: https://godoc.org/github.com/reddit/baseplate.go/thriftclient#example-packageWhat did you see instead?
On pkg.go.dev we kept the original Example function name in the code.
The text was updated successfully, but these errors were encountered: