The "gopls" command is not available. Run "go install -v golang.org/x/tools/gopls@latest" to install.

VSCode错误提示

解决方案

设置代理:

$ go env -w GO111MODULE=on
$ go env -w GOPROXY=https://goproxy.io,direct

设置完成后重启VSCode

posted @ 2024-10-21 10:11  Rix里克斯  阅读(334)  评论(0)    收藏  举报