金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

go-doc

go-doc 是面向文档处理的 Agent Skill,来自 caarlos0/dotfiles。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

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.md

下载 MD ↓
namego-doc
descriptionGet 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.

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

来源:caarlos0/dotfiles · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本