x/pkgsite: example code should be displayed as package main when rendering #37291
Labels
Milestone
Comments
/cc @julieqiu |
This issue was fixed in https://golang.org/cl/240685, and will be available soon on pkg.go.dev. It is currently behind the executable-examples experiment flag. If you would like to test it out locally, you can run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/reddit/baseplate.go@v0.0.0-20200327042237-1365288992e4/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: