Skip to content
New issue

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

cmd/doc: load packages with #34750

jayconrod opened this issue Oct 7, 2019 · 0 comments

cmd/doc: load packages with #34750

jayconrod opened this issue Oct 7, 2019 · 0 comments


Copy link

@jayconrod jayconrod commented Oct 7, 2019

cmd/doc currently uses go/build.Import to locate and import packages. It should use

This may be a little complicated because cmd/doc supports a number of shorthand formats for specifying the package to display documentation for, so we may not have the full package path. However, go/build has limited support for modules, and we're considering deprecating it eventually. Using go/packages could also simplify cmd/doc, since it wouldn't need code for parsing Go source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.