# Go Doc

> 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: `caarlos0/go-doc` (Agent Skill)
- Install (CLI): `npx skillmds@latest add caarlos0/go-doc`
- Raw SKILL.md: https://api.skillmd.com/api/skills/caarlos0/go-doc/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: caarlos0 (https://skillmd.com/u/caarlos0)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/caarlos0/go-doc

---


# 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

