当我运行docker-compose up时,我已经
db/postgres.go:7:2: cannot find package "github.com/lib/pq" in any of:
/usr/local/go/src/github.com/lib/pq (from $GOROOT)
/go/src/github.com/lib/pq (from $GOPATH)
我检查并在github.com文件夹中安装了Ipq(和其他packages _。
我的路径和根
jh@jh:~/go/src/github.com/meower$ echo $GOPATH
/home/jh/go
jh@jh:~/go/src/github.com/meower$ echo $GOROOT
/usr/local/go
为什么我的路径无法识别?