Skip to content

Instantly share code, notes, and snippets.

@spenserpothier
Forked from tydavis/getGoTools.sh
Last active April 8, 2019 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spenserpothier/c69f7b92aee079e24351a4b9f2eccd10 to your computer and use it in GitHub Desktop.
Save spenserpothier/c69f7b92aee079e24351a4b9f2eccd10 to your computer and use it in GitHub Desktop.
Setup Go tools
#!/bin/sh
go get -u github.com/dougm/goflymake
go get -u github.com/acroca/go-symbols
go get -u github.com/alecthomas/gometalinter
go get -u github.com/cweill/gotests/...
go get -u github.com/davidrjenni/reftools/cmd/fillstruct
go get -u github.com/derekparker/delve/cmd/dlv
go get -u github.com/dominikh/go-tools/cmd/keyify
go get -u github.com/fatih/gomodifytags
go get -u github.com/fatih/motion
go get -u github.com/golang/dep/cmd/dep
go get -u github.com/golang/lint/golint
go get -u github.com/haya14busa/goplay/cmd/goplay
go get -u github.com/josharian/impl
go get -u github.com/jstemmer/gotags
go get -u github.com/kardianos/govendor
go get -u github.com/kisielk/errcheck
go get -u github.com/klauspost/asmfmt/cmd/asmfmt
go get -u github.com/mdempsky/gocode
go get -u github.com/mgechev/revive
go get -u github.com/ramya-rao-a/go-outline
go get -u github.com/rogpeppe/godef
go get -u github.com/rogpeppe/godef
go get -u github.com/sqs/goreturns
go get -u github.com/uudashr/gopkgs/cmd/gopkgs
go get -u github.com/zmb3/gogetdoc
go get -u golang.org/x/tools/cmd/godoc
go get -u golang.org/x/tools/cmd/goimports
go get -u golang.org/x/tools/cmd/gorename
go get -u golang.org/x/tools/cmd/guru
gometalinter -i

Latest Emacs Install

$ wget https://mirrors.kernel.org/gnu/emacs/emacs-26.1.tar.gz
$ tar -xzf emacs-26.1.tar.gz
$ sudo apt-get install build-essential
$ sudo apt-get build-dep emacs24
$ ./configure --with-gnutls=no
$ make
$ sudo make install

Install Go and Tools

$ wget https://dl.google.com/go/go1.12.2.linux-amd64.tar.gz
$ sudo tar -xzf go1.12.2.linux-amd64.tar.gz -C /usr/local/
$ go get -u github.com/go-delve/delve/cmd/dlv
$ go get -u -v github.com/ramya-rao-a/go-outline
$ go get -u -v github.com/acroca/go-symbols
$ go get -u -v github.com/mdempsky/gocode
$ go get -u -v github.com/rogpeppe/godef
$ go get -u -v golang.org/x/tools/cmd/godoc
$ go get -u -v github.com/zmb3/gogetdoc
$ go get -u -v golang.org/x/lint/golint
$ go get -u -v github.com/fatih/gomodifytags
$ go get -u -v golang.org/x/tools/cmd/gorename
$ go get -u -v sourcegraph.com/sqs/goreturns
$ go get -u -v golang.org/x/tools/cmd/goimports
$ go get -u -v github.com/cweill/gotests/...
$ go get -u -v golang.org/x/tools/cmd/guru
$ go get -u -v github.com/josharian/impl
$ go get -u -v github.com/haya14busa/goplay/cmd/goplay
$ go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs
$ go get -u -v github.com/davidrjenni/reftools/cmd/fillstruct
$ go get -u -v github.com/alecthomas/gometalinter
$ gometalinter --install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment