GOPATH
if [ -d "/usr/local/go" ]; then
export PATH=$PATH:/usr/local/go/bin
export GOPATH=~/.go
else
export GOROOT=~/.go/golang
# export GOROOT=/usr/lib/go
fi
if [ -n "$GOPATH" ]; then
export GOBIN=$GOPATH/bin
fi
if [ -n "$GOROOT" ]; then # use `-n`, or `! -z`.
export PATH=$PATH:$GOROOT/bin
fi