$gopath not set的解决办法

执行安装

sudo go get github.com/nsf/gocode

提示:

cannot download, $GOPATH not set. For more details see: go help gopath

解决方案:

export GOPATH=/home/zhangbl/gocode

posted @ 2018-04-15 13:13  shiningrise  阅读(2943)  评论(0编辑  收藏  举报