Go LSP (gopls)

Plugin

为 Claude Code 接入 Go 官方语言服务器 gopls,提供代码智能、重构与分析。需先用 go install 安装 gopls 并把 Go 的 bin 目录加入 PATH。Anthropic 官方插件。

anthropics/claude-plugins-official · plugins/gopls-lsp40.4k
在 GitHub 上查看
README

gopls-lsp

Go language server for Claude Code, providing code intelligence, refactoring, and analysis.

Supported Extensions

.go

Installation

Install gopls using the Go toolchain:

go install golang.org/x/tools/gopls@latest

Make sure $GOPATH/bin (or $HOME/go/bin) is in your PATH.

More Information