go get无法下载第三方库的解决方法

解决方案
1、设置 go 模块GOPROXY=https://goproxy.cn
2、找到 C:\Windows\System32\drivers\etc\host这个文件,使用编辑器打开
在它的最后一段下加上:

192.30.253.113 github.com
192.30.252.131 github.com
185.31.16.185 github.global.ssl.fastly.net
74.125.237.1 dl-ssl.google.com
173.194.127.200 groups.google.com
192.30.252.131 github.com
185.31.16.185 github.global.ssl.fastly.net
74.125.128.95 ajax.googleapis.com

posted on 2021-04-18 16:53  zyp_java_net  阅读(212)  评论(0编辑  收藏  举报

导航