报错:
go: /go@v0.41.0: Get "https:////go/@v/v0.41.0.mod": dial tcp 142.251.43.17: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.
报错如上,大概就是安装依赖时从上述网址访问失败,一般是由于国内防火墙导致的,这个不可避免,,或者修改依赖获取的源,类似Python的换源,在cmd里面执行:
go env -w GOPROXY=
完成之后,再执行go mod tidy就很快了~