This is a creation in Article, where the information may have evolved or changed.
There are two solutions to the problem of go get being wall.
- Go to GitHub to find the source code, as described below
- Continue using go get, but set up a proxy for it.
For Method 1:
corresponding to the installation of the following packages,
-v-u golang.org/x/tools/cmd/godoc
Change the order to
$GOPATHclone https://github.com/golang/tools
This is because github.com has a golang.org code image, so you can manually clone the required toolkit source from GitHub, and then execute the following command to install it.
go build golang.org/x
Other tool installation methods are similar to the methods described above.
For method Two:
Here the agent tool chooses Lantern. Its proxy IP address is http://127.0.0.1:8787 instead of http://127.0.0.1:16823/
First perform the following method to set up the agent for the system:
//windows 系统cmdset http_proxy=http://127.0.0.1:8787set https_proxy=https://127.0.0.1:8787
//ubuntu export http_proxy=http://127.0.0.1:8787export https_proxy=https://127.0.0.1:8787
Second, to set up a proxy for the Git tool:
git config --global http.proxy http://127.0.0.1:8787git config --global https.proxy https://127.0.0.1:8787
The corresponding cancellation commands are:
gitconfig--global--unsethttp.proxygitconfig--global--unsethttps.proxy
You can then use the go get command to install the toolkit.