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

Add to ~/.config/catenary/config.toml:

[server.gopls]
command = "gopls"

[language.go]
servers = ["gopls"]

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