Go
Install
macOS
go install golang.org/x/tools/gopls@latest
Or via Homebrew:
brew install gopls
Linux
go install golang.org/x/tools/gopls@latest
Windows
go install golang.org/x/tools/gopls@latest
Config
Catenary ships a built-in definition for gopls — no [lsp.server.*]
config is needed. If gopls is on PATH, it works automatically.
Notes
goplsis the official Go language server- Ensure
$GOPATH/bin(or$HOME/go/bin) is in your PATH - Works with Go modules out of the box
- First run indexes your module cache — may take a moment