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?我迷路了。