我有以下文件结构:
.
├── bin
│ └── hello
├── pkg
└── src
└── jacob.uk.com
├── greeting
│ └── greeting.go
└── helloworld.go
5 directories, 3 files
使用以下 GOPATH
/Users/clarkj84/Desktop/LearningGo
在文件夹/usr/local/go/bin/go install jacob.uk.com内执行后src,我收到错误local import "./greeting" in non-local package
helloworld.go:
package main;
import "./greeting"
func main() {
}
相关分类