问题描述
在VS Code中安装go的插件时因为网络问题安装失败,遇到了下面的问题
Installing github.com/sqs/goreturns FAILED
解决方法
使用以下命令修改go环境中的代理设置,然后重启VS Code
go env -w GOPROXY=https://goproxy.cn,direct
在VS Code中安装go的插件时因为网络问题安装失败,遇到了下面的问题
Installing github.com/sqs/goreturns FAILED
使用以下命令修改go环境中的代理设置,然后重启VS Code
go env -w GOPROXY=https://goproxy.cn,direct