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
Closed

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

pjebs opened this issue Mar 15, 2018 · 5 comments

Comments

@pjebs
Copy link
Contributor

pjebs 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
@mvdan
Copy link
Member

mvdan 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
Copy link
Contributor Author

pjebs commented Mar 15, 2018

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

@mvdan
Copy link
Member

mvdan commented Mar 15, 2018

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

@josharian
Copy link
Contributor

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
Copy link
Contributor Author

pjebs commented Mar 15, 2018

thanks @josharian

@pjebs pjebs closed this as completed 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
Development

No branches or pull requests

4 participants