mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 20:06:01 +02:00
godoc: add page (#2170)
This commit is contained in:
parent
39f4ffc68f
commit
a1e93718c2
1 changed files with 15 additions and 0 deletions
15
pages/common/godoc.md
Normal file
15
pages/common/godoc.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# godoc
|
||||
|
||||
> Show documentation for go packages.
|
||||
|
||||
- Display help for package "fmt":
|
||||
|
||||
`godoc {{fmt}}`
|
||||
|
||||
- Display help for the function "Printf" of "fmt" package:
|
||||
|
||||
`godoc {{fmt}} {{Printf}}`
|
||||
|
||||
- Serve documentation as a web server on port "6060":
|
||||
|
||||
`godoc -http=:{{6060}}`
|
Loading…
Add table
Reference in a new issue