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 Module Get Private Repository
文章地址:https://www.zhihuclub.com/2410.shtml