light9
4/30/2015 - 7:06 PM

install go https://www.vultr.com/docs/installing-golang-on-ubuntu-14-04

apt-get install golang
mkdir /srv/go
export GOPATH="/srv/go/gopkg" 
export GOROOT="/srv/go"
echo export GOPATH=//srv/go/gopkg >> ~/.bashrc
echo export GOROOT=/srv/go >> ~/.bashrc
echo export PATH=$PATH:$GOROOT/bin:$GOPATH/bin >> ~/.bashrc
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin