墙内下载go依赖报错解决方案

错误类型如下

go: github.com/360EntSecGroup-Skylar/excelize@v1.3.1-0.20180527032555-9e463b461434: Get "https://proxy.golang.org/github.com/360%21ent%
21sec%21group-%21skylar/excelize/@v/v1.3.1-0.20180527032555-9e463b461434.mod": dial tcp 34.64.4.81:443: 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.

解决方案如下:
命令行中输入以下命令即可

go env -w GOSUMDB=off
# 更换代理,无需FQ。
go env -w GOPROXY=https://goproxy.cn,direct
posted @   JohnRey  阅读(248)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示