Skip to content

Instantly share code, notes, and snippets.

@iamnnort
Last active October 23, 2017 14:18
Show Gist options
  • Save iamnnort/662d43ee8caaa626ddff2c7d7ac34c77 to your computer and use it in GitHub Desktop.
Save iamnnort/662d43ee8caaa626ddff2c7d7ac34c77 to your computer and use it in GitHub Desktop.
GO
1.Install
sudo add-apt-repository ppa:gophers/archive
sudo apt update
sudo apt-get install golang-go
2. Insert path to ~/.bashrc
#Golang variables
export GOROOT=/usr/lib/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
3. Apply changes
source ~/.bashrc
go get -v github.com/rogpeppe/godef
go get -v github.com/uudashr/gopkgs/cmd/gopkgs
go get -v github.com/nsf/gocode
go get -v sourcegraph.com/sqs/goreturns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment