使用go mod 代理来安装

  • 将安装代理替换成国内的
  • 终端执行如下命令
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct


  • 关闭vscode重新打开,再次点击install all