我正在使用 glide 检查供应商功能。安装所有软件包非常棒,但我无法通过 go 命令在供应商软件包中找到它们。
go run src/main.go
src/main.go:8:2: cannot find package "github.com/valyala/fasthttp" in any of:
/home/joaonrb/.software/lib/go/go1.7/src/github.com/valyala/fasthttp (from $GOROOT)
/home/joaonrb/.projects/go-blog/src/github.com/valyala/fasthttp (from $GOPATH)
Fasthttp安装在/home/joaonrb/.projects/go-blog/src/vendor/github.com/valyala/fasthttp
,我使用的go版本是1.7,我的GOPATH是/home/joaonrb/.projects/go-blog