Premise 0.

You need to have golang and vscode installed and the environment variables GOROOT and GOPATH configured.

1. Download the tools

Execute in GOPATH:

$ git clone https://github.com/golang/lint.git src/golang.org/x/lint

$ git clone https://github.com/golang/tools.git src/golang.org/x/tools

2. Install the Go plug-in in VScode

3. The installation tools

First open any of the go files using vscode, and then type FMT on any line. Make vscode pop up the installation prompt, then click Install All to start the installation. Below is the result of a successful installation:

optional

Crypto, net, sys,text.(all in github.com/golang)

PS: This is a personal note, not so clear, so don’t blame me if you don’t understand.