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.
Installation
Details
Usage
After installing, this skill will be available to your AI coding assistant.
Verify installation:
skills listSkill Instructions
name: go-doc
description: 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.
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
More by caarlos0
View allAnalyze and optimize Go program performance. Use when asked to profile Go code, find performance bottlenecks, analyze memory allocations, detect memory leaks, write benchmarks, or optimize CPU/memory usage.
Prefer local git commands over GitHub MCP tools for operations on the current repository. Use when asked about commits, diffs, file history, branches, logs, blame, or viewing file contents at specific revisions in the current repo.
Simplify and refine code for clarity, consistency, and maintainability while preserving functionality. Use when asked to "simplify", "clean up", or "refactor" code, after writing complex code that could benefit from simplification, or when code has grown hard to follow.
