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}
godoc -write_index -index_files={path/to/file}
- Use the given index file to search the docs:
godoc -http=:{6060} -index -index_files={path/to/file}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).