最佳答案
这不很正常吗?go install 安装的包是可以多项目使用的,它是跨项目的;单个项目引用的包的话,使用 go get 即可 :stuck_out_tongue_winking_eye: :stuck_out_tongue_winking_eye: :stuck_out_tongue_winking_eye: :stuck_out_tongue_winking_eye:
讨论数量:
如果你用的GOPATH模式,在$GOPATH/src目录下看看 如果是mod模式,$GOPATH/pkg/mod下看看 具体到哪个依赖 如果是mod模式 打开你的go.mod 比如你使用了gorm: 查看路径:$GOPATH/pkg/mod/gorm.io/gorm@v1.23.4(具体版本号)
这不很正常吗?go install 安装的包是可以多项目使用的,它是跨项目的;单个项目引用的包的话,使用 go get 即可 :stuck_out_tongue_winking_eye: :stuck_out_tongue_winking_eye: :stuck_out_tongue_winking_eye: :stuck_out_tongue_winking_eye:
推荐文章: