Golang not turn over the wall to install Golang.org/x/net

Source: Internet
Author: User
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]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.