Goland 提示...cannot download,... is a GOROOT, not a GOPATH. For more details see: 'go help gopath'

原因: 配置goroot和gopath时混乱,使得两者很相似;
解决方法 移除 gopath内src/下的cmd文件夹。

参考: https://www.jianshu.com/p/3fb4e58e4528
https://stackoverflow.com/questions/42809990/go-get-cannot-download-home-azhukov-go-is-a-goroot-not-a-gopath

你可能感兴趣的:(Goland 提示...cannot download,... is a GOROOT, not a GOPATH. For more details see: 'go help gopath')