Get documentation for any Go library using `go doc`. Use when asked about Go package documentation, API reference, function signatures, or how to use a specific Go library/package.
Install
npx skillscat add caarlos0/dotfiles/go-doc Install via the SkillsCat registry.
SKILL.md
Go Documentation
Retrieve Go package documentation using go doc.
Workflow
- Check go.mod for package version (use that version, or
@latestif not found) - Fetch package if needed:
go get package/path@version - Run
go doc package/pathorgo doc package/path.Symbol
Key Flags
-src- Show source code-all- Show all symbols in package-u- Include unexported symbols