在 go.mod 文件添加
replace (
golang.org/x/crypto => github.com/golang/crypto v0.0.0-20190313024323-a1f597ede03a
golang.org/x/sys => github.com/golang/sys v0.0.0-20190318195719-6c81ef8f67ca
golang.org/x/text => github.com/golang/text v0.3.0
golang.org/x/lint => github.com/golang/lint v0.0.0-20190409202823-959b441ac422
golang.org/x/time => github.com/golang/time v0.0.0-20190308202827-9d24e82272b4
golang.org/x/tools => github.com/golang/tools v0.0.0-20190529010454-aa71c3f32488
golang.org/x/oauth2 => github.com/golang/oauth2 v0.0.0-20190523182746-aaccbc9213b0
golang.org/x/net => github.com/golang/net v0.0.0-20190318221613-d196dffd7c2b
golang.org/x/exp => github.com/golang/exp master
cloud.google.com/go => github.com/googleapis/google-cloud-go master
google.golang.org/genproto => github.com/google/go-genproto v0.0.0-20190522204451-c2c4e71fbf69
google.golang.org/grpc => github.com/grpc/grpc-go v1.21.0
google.golang.org/appengine => github.com/golang/appengine v1.6.1-0.20190515044707-311d3c5cf937
golang.org/x/sync => github.com/golang/sync v0.0.0-20190227155943-e225da77a7e6
)
有疑问加站长微信联系(非本文作者)