Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/godoc: generate docs for test files #17509
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Godoc is about showing the exported API from a package. Test files are not part of the exported API.
If the tests are so complex that they need documentation to find out how to use them, they're also often worth using from multiple tests, in which case we typically move them into separate standalone packages (not in *_test.go files), like testing/iotest and net/http/httptest. That might be the right solution for your case as well.