```
currDir=`pwd`
export GO111MODULE=off
export GOROOT=$currDir/../go
export GOARCH=amd64
export GOOS=linux
export GOPATH=$currDir/xxxx
export GOPROXY=https://goproxy.cn,direct
export GOPRIVATE=*.xxxxx.com
export GOBIN=$GOPATH/bin
export PATH=.:$PATH:$GOROOT/bin
```
有疑问加站长微信联系(非本文作者)