# Go Doc

> Go Doc is an Agent Skill for research published in the caarlos0/dotfiles repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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.

- Skill name: `go-doc`
- Category: [Research](https://www.openparable.com/skill/research/1)
- Source: https://github.com/caarlos0/dotfiles/blob/HEAD/skills/go-doc/SKILL.md
- Repository: caarlos0/dotfiles (216 GitHub stars when collected)

## SKILL.md

# Go Documentation

Retrieve Go package documentation using `go doc`.

## Workflow

1. Check go.mod for package version (use that version, or `@latest` if not found)
2. Fetch package if needed: `go get package/path@version`
3. Run `go doc package/path` or `go doc package/path.Symbol`

## Key Flags

- `-src` - Show source code
- `-all` - Show all symbols in package
- `-u` - Include unexported symbols

---

Source: https://www.openparable.com/skill/research/go-doc (OpenParable). Cite the canonical URL above.
