vscode中go 执行install all报错

golang.org/x/tools/gopls@latest: module golang.org/x/tools/gopls: Get "https://proxy.golang.org/golang.org/x/tools/gopls/@v/list": dial tcp 172.217.160.113:443: connectex: A connection attempt failed because the connected party did not properly respond af。

代理的原因,解决方案是修改代理,切换到国内的源

打开cmd窗口,执行以下命令即可

go env -w GO111MODULE=on

go env -w GOPROXY=https://goproxy.cn,direct

posted @ 2024-05-10 22:24  郭松  阅读(21)  评论(0编辑  收藏  举报