doomemacs/modules/lang/go
2017-04-27 18:02:54 -04:00
..
autoload.el Update lang modules' :build settings 2017-04-07 01:46:33 -04:00
config.el PRAISE BE TO THE BYTE COMPILER FOR THY SHARP QUOTES 2017-04-17 02:17:10 -04:00
packages.el General cleanup 2017-04-25 23:01:45 -04:00
README.org lang/go: replace bootstrap with README.org 2017-04-27 18:02:54 -04:00

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