我有以下文件结构:.├── bin│ └── hello├── pkg└── src └── jacob.uk.com ├── greeting │ └── greeting.go └── helloworld.go5 directories, 3 files使用以下 GOPATH/Users/clarkj84/Desktop/LearningGo在文件夹/usr/local/go/bin/go install jacob.uk.com内执行后src,我收到错误local import "./greeting" in non-local packagehelloworld.go:package main;import "./greeting"func main() {}
3 回答
- 3 回答
- 0 关注
- 144 浏览
添加回答
举报
0/150
提交
取消