1
2
3
4
5
6
7
8
9
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