mz

解决go get被墙问题:connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

gopm 插件可以实现安装拓展不被墙,但是由于go get被墙go get -u github.com/gpmgo/gopm便无法下载

事实上整个golang.org的拓展随着google一起被墙

解决:github.com没有被墙,而上面有gopm的源码使用:

go get -v github.com/gpmgo/gopm

完美解决,这是下载别的拓展时,将go get换为gopm get例如:

gopm get golang.org/x/mobile/cmd/gomobile

成功安装。

 

手动安装golang拓展:

将拓展压缩包放入$PATH/src/golang.org/x (如果文件夹不存在便自行创建)

go get golang.org/x/包名 (如果本地存在该包,就不会去golang.org下载,就不存在被墙的问题。)

码字很辛苦,转载请注明来自明志博客《解决go get被墙问题:connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond》

评论

  1. s885628418 #1

    111

    回复
    2019-02-7
  2. mo #2

    :razz: :evil: :smile: :eek: :shock: :???: :lol: :roll: :roll: :wink: :wink: :wink: :wink: :wink: :wink: :mrgreen: :cry:

    回复
    2019-12-9
    • s885628418

      ???

      回复
      2019-12-9