export GOPATH=/usr/local/go/gopath # go get 命令下载存放的位置 export GOROOT=/usr/local/go # go的安装目录 export PATH=$GOROOT/bin:$PATH