go version go1.14
go env -w GOPRIVATE=bitbucket.org
git config url."ssh://git@bitbucket.org/xxx".insteadOf "https://bitbucket.org/xxx"
go mod edit -require=bitbucket.org/xxx/repo@xx-revision
go mod download
参考文章:
有疑问加站长微信联系(非本文作者)
go version go1.14
go env -w GOPRIVATE=bitbucket.org
git config url."ssh://git@bitbucket.org/xxx".insteadOf "https://bitbucket.org/xxx"
go mod edit -require=bitbucket.org/xxx/repo@xx-revision
go mod download
参考文章:
有疑问加站长微信联系(非本文作者)
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
`单行代码`
go version go1.14
go env -w GOPRIVATE=bitbucket.org
git config url."ssh://git@bitbucket.org/xxx".insteadOf "https://bitbucket.org/xxx"
go mod edit -require=bitbucket.org/xxx/repo@xx-revision
go mod download
参考文章: