mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 05:24:55 +02:00
12 lines
280 B
Markdown
12 lines
280 B
Markdown
# 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}}`
|