俊逸铃铛

文章
3
资源
0
加入时间
3年0月20天

go环境配置之 .zshrc .bashrc .bash_profile 的区别

在Mac终端运行go build一直报如下错误:ioutil.go:4:2: cannot find package “fmt” in any of:/usr/local/Cellar/go/1.10.2/src/fmt (from $GOROOT)/Users/wangdejun/gopath/src/fmt (from $GOPATH)不能找到src/fmt包,>which go >/usr/local/bin/go明显环境变量$GOROOT和$GOPATH配置错