vim ~/.bash_profile export GOROOT=/usr/local/go export PATH=$PATH:$GOROOT/bin export GOPATH=/golang/code export PATH=$PATH:$GOPATH/bin source ~/.bash_profile