墙内下载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