966 B
966 B
Go
Go support, including auto-completion, eldoc support (go-eldoc), REPL support, refactoring commands, syntax-checking (flycheck), auto-formatting (gofmt) and snippets (yasnippet).
Installation
MacOS
brew install go
Arch Linux
pacman --needed --noconfirm -S go
Dependencies
You'll need to set up GOPATH
. This is mine:
export GOPATH=~/.go
Then install the necessary packages:
go get -u github.com/nsf/gocode # completion
go get -u github.com/motemen/gore # REPL
go get -u golang.org/x/tools/cmd/guru # code navigation commands
go get -u golang.org/x/tools/cmd/gorename # refactoring commands