Next: , Previous: , Up: Go-Mode Features   [Index]


A.4.5 Autocompletion

gocode, written by nsf, provides the kind of autocompletion.

Personally I recommend trying company-mode first.

gopls

https://github.com/golang/tools/tree/master/gopls the official Go language server developed by the Go team. It provides IDE features to any LSP-compatible editor.

To use gopls with Emacs, you must first install the gopls binary and ensure that the directory containing the resulting binary (either ‘$(go env GOBIN)’ or ‘$(go env GOPATH)/bin)’ is in your PATH. To use gopls with Emacs, you must first install the gopls binary and ensure that the directory containing the resulting binary (either ‘$(go env GOBIN)’ or ‘$(go env GOPATH)/bin)’ is in your PATH.