win7下go: GOPATH entry is relative; must be absolute path: "".

最近在学习go语言,当代码编写完成,运行go build的时候,这个错误。

D:\>go build calc
go: GOPATH entry is relative; must be absolute path: "".
Run 'go help gopath' for usage.

D:\>

查看环境变量设置,发现GOPATH后面多了一个分号,去掉后解决问题。



你可能感兴趣的:(go,go语言)