go doc
Show documentation for a package or symbol.
- Show documentation for the current package:
go doc
- Show package documentation and exported symbols:
go doc {encoding/json}
- Show also documentation of symbols:
go doc -all {encoding/json}
- Show also sources:
go doc -all -src {encoding/json}
- Show a specific symbol:
go doc -all -src {encoding/json.Number}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).