This is a created article in which the information may have evolved or changed.
Download install golang.org/x/net Actually there are many articles on the net, but the total return is two kinds:
Method One:
In order for the package to be imported in the same way, we need to construct the directory structure under the SRC directory
$mkdir-P $GOPATH/src/golang.org/x/
$CD $GOPATH/src/golang.org/x/
$git Clone Https://github.com/golang/net.git Net
$go Install net
There is no prompt after the go install, which means the installation is ready.
The above method references: [when "Go get" encounters the wall, how should we solve?]
Method Two
Some say https://github.com/golang/net and https://golang.org/x/net are the same,
The wall is not the way to go get golang.org/x/net.
Can git pull to folder under GitHub
Then go install golang.org/x/net/... To install
I generally adopt a method to solve the problem, the method two also tried, seemingly also no problem.
[Get authorization]