Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides semantic Go code navigation, refactoring, and diagnostics through the gopls language server's MCP tools, LSP tool, or CLI.
70% 87%+17 ptsof test cases passed
Passed 20 of 23 test cases with the skill, and 16 of 23 without it.
3 of 3 safety checks passed
Not used yet
gopls CLI referenceThe Go team documents this interface as experimental — "not efficient, complete, flexible, or officially supported." Treat it as a debugging and one-shot-scripting fallback, not the primary way to drive gopls; prefer the MCP tools or the native LSP tool when either is available (see mcp.md).
Two interchangeable formats locate a point in a file:
file.go:line:column — both 1-indexed; columns count UTF-8 bytes, not runes or UTF-16 code units. Non-ASCII lines can disagree with what an editor reports if the editor counts differently.file.go:#1234 — a 0-indexed byte offset from the start of the file.gopls definition internal/cmd/definition.go:44:47
gopls definition internal/cmd/definition.go:#1270
Flags accepted by gopls itself, before the subcommand:
| Flag | Value | Purpose |
|---|---|---|
-logfile=<path> | a file path, or the literal string auto | Log destination; auto picks a default output file instead of stderr |
-profile.cpu=<path> | a file path | Write a CPU profile to this file |
-profile.mem=<path> | a file path | Write a memory profile to this file |
-profile.alloc=<path> | a file path | Write an allocation profile to this file |
-profile.block=<path> | a file path | Write a blocking-profile to this file |
-profile.trace=<path> | a file path | Write an execution trace to this file |
Next to this one in the catalogue, plus more from the same author.