Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

  • gopls is 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