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

proposal: Add some way to explore packages and structs inside. #24410

Closed
pjebs opened this issue Mar 15, 2018 · 5 comments

Comments

@pjebs
Copy link

commented Mar 15, 2018

Is there some way to get all the packages and subpackages in the standard library, and all the structs inside those packages?

Something like what: https://golang.org/pkg/ outputs, but in a parseable format such as json

@gopherbot gopherbot added this to the Proposal milestone Mar 15, 2018

@gopherbot gopherbot added the Proposal label Mar 15, 2018

@mvdan

This comment has been minimized.

Copy link
Member

commented Mar 15, 2018

Have you looked into the go doc and godoc commands?

If this is a proposal, it should propose something more specific. For example, adding JSON output to eithere of those tools (assuming there isn't yet such a feature) could be a proposal.

@pjebs

This comment has been minimized.

Copy link
Author

commented Mar 15, 2018

its clear go doc has the capability. Adding JSON output is what I'm referring to.

@mvdan

This comment has been minimized.

Copy link
Member

commented Mar 15, 2018

Well, the proposal is very short, so I'm making no assumptions as to what you meant.

@josharian

This comment has been minimized.

Copy link
Contributor

commented Mar 15, 2018

Start with go list std (look at go help list for formatting info). Then feed that to go doc / godoc / go/doc or something else custom to match your exact needs.

@pjebs

This comment has been minimized.

Copy link
Author

commented Mar 15, 2018

thanks @josharian

@pjebs pjebs closed this Mar 15, 2018

@golang golang locked and limited conversation to collaborators Mar 15, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants
You can’t perform that action at this time.