Loading...
Loading...
Golang package and module documentation and exploration via `godig`, a pkg.go.dev API client (CLI + MCP server) — package docs, API references, symbols, code examples, available versions, importers (who imports a package), licenses, and known vulnerabilities. Read-only, no auth. Use for looking up any Go/Golang library's documentation, API signatures, usage examples, which versions exist, whether a dependency has CVEs, or who imports a package — prefer this over Context7 for any Go package or module. Triggers on: how to use a Go library, Go API docs, import usage, code examples, pkg.go.dev. Not for upgrading dependencies (→ See `samber/cc-skills-golang@golang-dependency-management` skill) or choosing a library (→ See `samber/cc-skills-golang@golang-popular-libraries` skill).
npx skill4agent add samber/cc-skills-golang golang-pkg-go-devgodiggo install github.com/samber/godig/cmd/godig@latestgodiggo install github.com/samber/godig/cmd/godig@latestgodig mcp--transport httpclaude mcp add pkg-go-dev -- godig mcp/mcp:8080godig mcp --transport http --addr :8080
claude mcp add --transport http pkg-go-dev http://localhost:8080/mcphttps://godig.samber.dev/mcpclaude mcp add --transport http pkg-go-dev https://godig.samber.dev/mcpgodig-o/--output table|json|raw|mdtable-o md--base-url--timeout--log-level debug|info|warn|error|offGODIG_*| Command | Args | Specific flags | Purpose |
|---|---|---|---|
| | | Compact summary (metadata, versions, licenses, vulns) — start here |
| | | Find packages (optionally exporting a symbol) |
| | | Package metadata |
| | | Packages this package imports (plain list) |
| | | Full package doc (LARGE) |
| | | Runnable examples (LARGE; scope with |
| | | License files, full text (LARGE) |
| | | One symbol's signature + doc (token-efficient) |
| | | One symbol's runnable examples |
| | | List exported symbols |
| | | Module metadata |
| | | Module license files (LARGE) |
| | | Module README, full Markdown (LARGE) |
| | | go.mod deps: requires / replaces / excludes / go directive |
| | | Packages contained in a module |
| | | All versions, newest first |
| | | Major versions (v1, v2 …) living as separate modules |
| | | Packages that import this one |
| | | Known vulnerabilities |
| — | | Run as an MCP server |
| — | — | Print godig version / commit / build date |
godig012--limitgodig package2-o mdoverviewdocexamplesmodule readmelicenses-o mdtablejsonrawmd<path>github.com/samber/lo--versionv1.5.0latestmastermain--module--filter--goos--goarchlinuxamd64symbol docsymbol examplespackage docpackage examplesgodiggodig--limit--filtersearchversionsmajor-versionspackagesimported-bysymbolsvulnssearchpackagePathpathundefined identifier: <name>vulnsIDidkindFunctionfunc==!=<<=>>=&&||!contains(s, sub)hasPrefix(s, pre)hasSuffix(s, suf)"Function"truefalse| Command | Fields |
|---|---|
| |
| |
| |
| |
| |
| |
| |
godig symbols github.com/samber/lo --filter 'kind=="Function"' -o md
godig symbols github.com/samber/lo --filter 'kind=="Function" && hasPrefix(name,"Map")' -o md
godig versions github.com/samber/lo --filter 'hasPrefix(version,"v1.5")' -o md
godig versions github.com/samber/lo --filter 'deprecated==false && retracted==false' -o md
godig search "result option" --filter 'hasPrefix(packagePath,"github.com/samber/")' -o md-o md# Overview — start here (compact, one call)
godig overview github.com/samber/ro -o md
# Search
godig search "result option monad" --limit 5 -o md
# Package facets
godig package info github.com/samber/ro -o md
godig package imports github.com/samber/ro -o md
godig package doc github.com/samber/ro --format md -o md
godig package examples github.com/samber/ro --symbol Map -o md
godig package licenses github.com/samber/ro -o md
# Single symbol (token-efficient vs package-wide doc/examples)
godig symbol doc github.com/samber/lo Map -o md
godig symbol examples github.com/samber/oops OopsError.Error -o md
# Module facets
godig module info github.com/samber/ro -o md
godig module readme github.com/samber/ro -o raw
godig dependencies github.com/samber/ro -o md
# Lists (auto-paginated; --limit to cap)
godig versions github.com/samber/ro -o md
godig major-versions github.com/samber/lo -o md
godig packages github.com/samber/ro -o md
godig imported-by github.com/samber/ro --limit 20 -o md
godig symbols github.com/samber/ro --filter 'kind=="Function"' -o md
# Pin a version / set the build context
godig versions github.com/samber/ro --filter 'hasPrefix(version,"v0.3")' -o md
godig package doc github.com/samber/lo --version v1.50.0 -o md
godig symbols github.com/samber/ro --goos linux --goarch amd64 -o md
# Vulnerabilities
godig vulns github.com/samber/ro -o mdgodig --help--helpgodig