0
从go文档的外观看,它们使您看起来像必须在您的$ GOPATH下放置代码 - 是否正确?Go包/文件位置
我想设立在我的〜/文档一DIR一个测试项目,但每次我运行go install example/newmath
(如在测试例子),它说的following--
λ MacBook-Air src → go install example/newmath
warning: GOPATH set to GOROOT (/usr/local/go) has no effect
can't load package: package example/newmath: import "example/newmath": cannot find package
这是否意味着我需要重置我的$ GOPATH/$ GOROOT?我迷路了。