go问题

执行go fmt或go build命令报错:

Get “https://proxy.golang.org/github.com/gin-gonic/gin/@v/list”: dial tcp 172.217.160.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 GOPROXY=https://goproxy.cn