我只是用自制软件安装了 golang,但在导入远程包时遇到了问题。
当我尝试安装包含
import "github.com/bradfitz/gomemcache/memcache"
我收到以下错误
$ go install
demo.go:3:8: cannot find package "github.com/bradfitz/gomemcache/memcache" in any of:
/usr/local/Cellar/go/1.4/libexec/src/github.com/bradfitz/gomemcache/memcache (from $GOROOT)
/Users/white/go/src/github.com/bradfitz/gomemcache/memcache (from $GOPATH)
在我未经训练的眼睛看来,它看起来只是在我的 GOPATH 本地查看。
相关分类