We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://pkg.go.dev/github.com/mroth/weightedrand@v0.2.2?tab=doc#example-package
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15
Package Example function in godoc.org:
Package Example unction in pkg.go.dev: (snipped...)
Use a package level Example function in the godocs for a module.
The example code and output for the Example function only rendered at the top of the package documentation page.
The "code" section of the example function contains the source of the entire file, not just the Example function.
The text was updated successfully, but these errors were encountered:
Possibly related to (or even a duplicate of) #39006.
Sorry, something went wrong.
Change https://golang.org/cl/239180 mentions this issue: internal/fetch/internal/doc: fix detection of whole file examples
internal/fetch/internal/doc: fix detection of whole file examples
golang/pkgsite@43a5edf
No branches or pull requests
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/mroth/weightedrand@v0.2.2?tab=doc#example-package
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15
Screenshot
Package Example function in godoc.org:

Package Example unction in pkg.go.dev:

(snipped...)
What did you do?
Use a package level Example function in the godocs for a module.
What did you expect to see?
The example code and output for the Example function only rendered at the top of the package documentation page.
What did you see instead?
The "code" section of the example function contains the source of the entire file, not just the Example function.
The text was updated successfully, but these errors were encountered: