x/tools/cmd/godoc: ExampleABC functions not matching a suffix rule are not displayed #10494
Labels
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
When viewing examples in godoc, a function called ExampleABC that doesn't match any of the suffix patterns described here
http://golang.org/pkg/testing/#hdr-Examples
is silently excluded. I would have expected it to be associated with the package.
The -ex flag makes no difference.
You can see an example in the x/tools repo, if you sync to 9c57c19 and look at golang.org/x/tools/go/loader. The follow-up change, 41d9a0e, renames the examples to make them visible.
The text was updated successfully, but these errors were encountered: