warning: GOPATH set to GOROOT (/usr/local/go) has no effect
执行 go generate 命令
报以下错误:
warning: GOPATH set to GOROOT (/usr/local/go) has no effect
https://www.cnblogs.com/studywithallofyou/p/17535678.html
因为配置GOPATH与GOROOT目录相同,所以报警,可以专门创建一个目录设置GOPATH。
GOROOT是下载安装go的目录,然后在环境变量PATH中配置好安装go目录下的bin目录,再创建一个目录配置为GOPATH即可