caarlos0

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.

caarlos0 224 12 Actualitzat fa 9 mesos
GitHub

Instal·la

npx skillscat add caarlos0/dotfiles/go-doc

Instal·la des del registre de SkillsCat.

Sobre aquest skill

Retrieves documentation for Go packages and symbols by fetching them and running `go doc`. It solves the problem of quickly accessing API references, function signatures, and usage details for Go libraries. Use it when an agent or developer needs up-to-date documentation for a specific Go package or symbol.

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