mirror of https://github.com/golang/go.git
Merge 6b40ba192c into 49cdf0c42e
This commit is contained in:
commit
c62d597b96
|
|
@ -108,26 +108,20 @@ Examples:
|
||||||
cd go/src/encoding/json; go doc decode
|
cd go/src/encoding/json; go doc decode
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
|
-C dir
|
||||||
|
change to dir before running command
|
||||||
-all
|
-all
|
||||||
Show all the documentation for the package.
|
show all documentation for package
|
||||||
-c
|
-c symbol matching honors case (paths not affected)
|
||||||
Respect case when matching symbols.
|
|
||||||
-cmd
|
-cmd
|
||||||
Treat a command (package main) like a regular package.
|
show symbols with package docs even if package is a command
|
||||||
Otherwise package main's exported symbols are hidden
|
-http
|
||||||
when showing the package's top-level documentation.
|
serve HTML docs over HTTP
|
||||||
-short
|
-short
|
||||||
One-line representation for each symbol.
|
one-line representation for each symbol
|
||||||
-src
|
-src
|
||||||
Show the full source code for the symbol. This will
|
show source code for symbol
|
||||||
display the full Go source of its declaration and
|
-u show unexported symbols as well as exported
|
||||||
definition, such as a function definition (including
|
|
||||||
the body), type declaration or enclosing const
|
|
||||||
block. The output may therefore include unexported
|
|
||||||
details.
|
|
||||||
-u
|
|
||||||
Show documentation for unexported as well as exported
|
|
||||||
symbols, methods, and fields.
|
|
||||||
`,
|
`,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue