The "gopls" command is not available. Run "go get -v golang.org/x/tools/gopls" t

647 阅读1分钟

vscode中提示install,点击之后install失败,提示# The "gopls" command is not available. Run "go get -v golang.org/x/tools/gopls" to install. 只需设置一下

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

再次install all. 搞定。