go doc <package>
Show documentation for package or symbol
Arguments
Options
Name | Description |
---|
-all | Show all the documentation for the package |
-c | Respect case when matching symbols |
-cmd | Treat a command (package main) like a regular package. Otherwise package main's exported symbols are hidden when showing the package's top-level documentation |
-short | One-line representation for each symbol |
-src | Show the full source code for the symbol |
-u | Show documentation for unexported as well as exported symbols, methods, and fields |