摘要:
环境配置:RyanMacbookPro:work$ env | grep GOGOBIN=/usr/local/go/binGOARCH=amd64GOROOT=/usr/local/goGOOS=darwinGOPATH=/Users/ryan/go执行安装sudo go get github.com/nsf/gocode提示:cannot download, $GOPATH not set. For more details see: go help gopath解决方案:sudo env GOPATH=/Users/ryan/go go get github.com/nsf/gocode 阅读全文