vscode问题 要求导入依赖

Devilmyc · 2022-04-13 08:53:05 · 1239 次点击

image.png 现在又报这个错误了...vscode配go咋这么难{手动狗头}

#4
更多评论

配置 GOPROXY 环境变量

export GOPROXY=https://proxy.golang.com.cn,direct

还可以设置不走 proxy 的私有仓库或组,多个用逗号相隔(可选)

export GOPRIVATE=git.mycompany.com,github.com/my/private

你打开网站https://goproxy.io/zh/看看,它的域名更新了

#1

我已经设置了啊,但是不清楚为啥还要求再安装明明已经安装完了

#2