tldr/pages/common/go-doc.md

13 lines
280 B
Markdown
Raw Normal View History

# go doc
> Tool for showing documentation for package or symbol.
> More information: <https://golang.org/cmd/go/>.
- Show documentation for {{Foo}} in the current package:
`go doc {{Foo}}`
- Show documentation and method summary for {{json.Number}}:
`go doc {{json.Number}}`