doomemacs/modules/lang/go
2017-05-04 10:40:57 +02: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 lang/go: remove bootstrap 2017-04-27 18:15:08 -04:00
README.org Add README.org's for lang/cc, app/email; update other README.org's 2017-05-04 10:40:57 +02: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

sudo pacman --needed --noconfirm -S go

Setup

You need to set up GOPATH before you can install lang/go's dependencies.

export GOPATH=~/work/go

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