cannot download, $GOPATH not set. For more details see: go help gopath 在 ~/.bashrc 里加一下这两句export GOPATH=$HOME/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin