美文网首页
go mod 墙外资源映射笔记

go mod 墙外资源映射笔记

作者: cc14514 | 来源:发表于2019-05-04 19:07 被阅读0次

    第一招:

    export GOPROXY=https://goproxy.io
    

    第二招

    进入 go mod 时代以后下载 deps 时经常遇到墙外资源,随时用到随时记录吧,无奈呀,也欢迎任何人提交 pr 来更新这个记录

    常用墙外资源

    golang.org
    google.golang.org
    gopkg.in
    go.uber.org
    cloud.google.com
    
    

    下面是对应的 github 资源

    replace (
        cloud.google.com/go => github.com/googleapis/google-cloud-go v0.34.0
        github.com/go-tomb/tomb => gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
        go.opencensus.io => github.com/census-instrumentation/opencensus-go v0.19.0
        go.uber.org/atomic => github.com/uber-go/atomic v1.3.2
        go.uber.org/multierr => github.com/uber-go/multierr v1.1.0
        go.uber.org/zap => github.com/uber-go/zap v1.9.1
        golang.org/x/crypto => github.com/golang/crypto v0.0.0-20181001203147-e3636079e1a4
        golang.org/x/lint => github.com/golang/lint v0.0.0-20181026193005-c67002cb31c3
        golang.org/x/net => github.com/golang/net v0.0.0-20180826012351-8a410e7b638d
        golang.org/x/oauth2 => github.com/golang/oauth2 v0.0.0-20180821212333-d2e6202438be
        golang.org/x/sync => github.com/golang/sync v0.0.0-20181108010431-42b317875d0f
        golang.org/x/sys => github.com/golang/sys v0.0.0-20181116152217-5ac8a444bdc5
        golang.org/x/text => github.com/golang/text v0.3.0
        golang.org/x/time => github.com/golang/time v0.0.0-20180412165947-fbb02b2291d2
        golang.org/x/tools => github.com/golang/tools v0.0.0-20181219222714-6e267b5cc78e
        google.golang.org/api => github.com/googleapis/google-api-go-client v0.0.0-20181220000619-583d854617af
        google.golang.org/appengine => github.com/golang/appengine v1.3.0
        google.golang.org/genproto => github.com/google/go-genproto v0.0.0-20181219182458-5a97ab628bfb
        google.golang.org/grpc => github.com/grpc/grpc-go v1.17.0
        gopkg.in/alecthomas/kingpin.v2 => github.com/alecthomas/kingpin v2.2.6+incompatible
        gopkg.in/mgo.v2 => github.com/go-mgo/mgo v0.0.0-20180705113604-9856a29383ce
        gopkg.in/vmihailenco/msgpack.v2 => github.com/vmihailenco/msgpack v2.9.1+incompatible
        gopkg.in/yaml.v2 => github.com/go-yaml/yaml v0.0.0-20181115110504-51d6538a90f8
        labix.org/v2/mgo => github.com/go-mgo/mgo v0.0.0-20160801194620-b6121c6199b7
        launchpad.net/gocheck => github.com/go-check/check v0.0.0-20180628173108-788fd7840127
    )
    

    相关文章

      网友评论

          本文标题:go mod 墙外资源映射笔记

          本文链接:https://www.haomeiwen.com/subject/ovjfoqtx.html