我已經安裝、設置并運行了 hello world;我遵循了這些指示。我的工作區組織如下:gocode/ bin/ pkg/ src/ github.com/ my_username/ hello/ hello.go anomalyzer/ algorithms.go ... README.md我想開始使用來自分叉 GitHub 存儲庫lytics/anomalyzer 的Go 代碼。我怎樣才能做到這一點?我分叉了 repo 并在其中設置了一個本地克隆,github.com/anomalyzer/如上所示。但是github.com/anomalyzer/我嘗試從目錄中go install獲取錯誤消息algorithms.go:5:2: cannot find package "github.com/drewlanenga/govector" in any of: ...(lists my GOPATH)??雌饋砦疫€需要克隆github.com/drewlanenga/govector,是嗎?是否有自動獲取所有包依賴項的方法?
- 1 回答
- 0 關注
- 162 瀏覽
添加回答
舉報
0/150
提交
取消