在編譯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”