相关文章推荐
玩命的莴苣  ·  简述数据字典-掘金·  2 年前    · 
玩手机的甜瓜  ·  Amazon.com: AutoShack ...·  3 年前    · 
正直的刺猬  ·  java blob转file-掘金·  3 年前    · 

在编译go的过程中是不是经常会遇到这样的报错
module ***: Get "https://proxy.golang.org/***": dial tcp 172.217.160.113: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 GOPROXY=https://goproxy.cn

如果用的是Goland,这样设置:“setting"--》“Go”--》“Go Modules”--》“Proxy”