golang/go

cmd/go: add go doc -json

Open

#34,293 opened on Sep 14, 2019

View on GitHub
 (20 comments) (9 reactions) (0 assignees)Go (19,008 forks)batch import
GoCommandNeedsFixProposalProposal-Acceptedhelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

To build better language support for editors and ide's it could be helpful to have the docs as json.

For example https://golang.org/pkg/strings.json to get the strings package documentation. Or via terminal by a flag like go doc fmt -format json

Then the docs can be used to generate snippets based on the documentation.

Contributor guide