我将 Goland 安装为 Go IDE,它要我配置 GOPATH。我是这门语言的新手,所以我不知道该怎么做。这是错误消息:
GOPATH was detected We've detected some libraries from your GOPATH. You may want to add extra libraries in GOPATH configuration.
编辑:不是重复的问题,export GOROOT=""
解决了我的问题。无论如何谢谢。
最佳答案
You actually do not need to set the GOPATH
environment variable; in Go 1.8 it's ~/go
by default.
我建议您只更新到最新的稳定 Go (1.8) 并使用该约定;否则你需要在你的环境中设置 GOPATH
变量。
关于go - 如何配置GOPATH?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42331452/