This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
feat(docfx): add support for examples (#2884)
Examples are located in _test.go files, which go/packages parses into a separate foo_test package. So, this requires an extra step of collecting all files from the package, including test packages, then parsing them. That way, the go/doc package can associate types/functions/packages with the examples for them (rather than an unassociated list).
- Loading branch information
Showing 2 changed files with 246 additions and 79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Oops, something went wrong.