go mod中需要replace的内容

作者: aries 分类: Go 发布时间: 2019-05-28 20:44 ė 1571次浏览 6 0评论

把如下内容放到go.mod

就不会出现golang.org/xxxx中的包下载不了的情况了!

replace golang.org/x/text => github.com/golang/text latest
replace golang.org/x/net => github.com/golang/net latest
replace golang.org/x/crypto => github.com/golang/crypto latest
replace golang.org/x/tools => github.com/golang/tools latest
replace golang.org/x/sync => github.com/golang/sync latest
replace golang.org/x/sys => github.com/golang/sys latest
replace cloud.google.com/go => github.com/googleapis/google-cloud-go latest
replace google.golang.org/genproto => github.com/google/go-genproto latest
replace golang.org/x/exp => github.com/golang/exp latest
replace golang.org/x/time => github.com/golang/time latest
replace golang.org/x/oauth2 => github.com/golang/oauth2 latest
replace golang.org/x/lint => github.com/golang/lint latest
replace google.golang.org/grpc => github.com/grpc/grpc-go latest
replace google.golang.org/api => github.com/googleapis/google-api-go-client latest
replace google.golang.org/appengine => github.com/golang/appengine latest
replace golang.org/x/mobile => github.com/golang/mobile latest
replace golang.org/x/image => github.com/golang/image latest
0 go
换一个
暂无评论
Ɣ回顶部