VSCode Go 环境

先在终端执行

go env -w GO111MODULE=on

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

来创建代理。

然后重新打开VSCode,Install All 之后,

Tools environment: GOPATH=/Users/chris/go

Installing 10 tools at /Users/chris/go/bin in module mode.

gopkgs

go-outline

gotests

gomodifytags

impl

goplay

dlv

dlv-dap

staticcheck

gopls

Installing github.com/uudashr/gopkgs/v2/cmd/gopkgs@latest (/Users/chris/go/bin/gopkgs) SUCCEEDED

Installing github.com/ramya-rao-a/go-outline@latest (/Users/chris/go/bin/go-outline) SUCCEEDED

Installing github.com/cweill/gotests/gotests@latest (/Users/chris/go/bin/gotests) SUCCEEDED

Installing github.com/fatih/gomodifytags@latest (/Users/chris/go/bin/gomodifytags) SUCCEEDED

Installing github.com/josharian/impl@latest (/Users/chris/go/bin/impl) SUCCEEDED

Installing github.com/haya14busa/goplay/cmd/goplay@latest (/Users/chris/go/bin/goplay) SUCCEEDED

Installing github.com/go-delve/delve/cmd/dlv@latest (/Users/chris/go/bin/dlv) SUCCEEDED

Installing github.com/go-delve/delve/cmd/dlv@master (/Users/chris/go/bin/dlv-dap) SUCCEEDED

Installing honnef.co/go/tools/cmd/staticcheck@latest (/Users/chris/go/bin/staticcheck) SUCCEEDED

Installing golang.org/x/tools/gopls@latest (/Users/chris/go/bin/gopls) SUCCEEDED

All tools successfully installed. You are ready to Go. :)

上一篇:Array.prototype.find 数组find方法


下一篇:MySQL