1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
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}}`