cnbattle@coding:~$ vim .profile 

export GOROOT=/usr/local/go
export GOBIN=$GOROOT/bin
export GOPATH=$HOME/go-path
export GOPATHBIN=$GOPATH/bin

export PATH=$PATH:$GOBIN:$GOPATHBIN