这是我第一次在这里提问,无论如何,我想知道为什么它说找不到包裹,即使github.com/JohnDoe/temperature/conversion/conv在里面$GOPATH
[johndoe@johndoe temperature]$ go run main.go
main.go:5:2: cannot find package "github.com/JohnDoe/temperature/conversion/conv" in any of:
/usr/local/go/src/github.com/JohnDoe/temperature/conversion/conv (from $GOROOT)
/home/johndoe/Workspace/Go/src/github.com/JohnDoe/temperature/conversion/conv (from $GOPATH)
更多细节:
[johndoe@johndoe conversion]$ pwd
/home/johndoe/Workspace/Go/src/github.com/JohnDoe/temperature/conversion
[johndoe@johndoe conversion]$ ls
conv.go
想法?