golang go get proxy settings

1.gopm go instead of download third-party dependencies

It can be used gopm downloaded from golang.org some of the mirror sites.
a). Installation gopm

go get -u github.com/gpmgo/gopm

. b) instead of using gopm get -g go getgopm get
without using -g parameter dependencies will download directory .vendor;
using -g parameter dependencies can be downloaded to GOPATH directory;

gopm get -g golang.org/x/net

2. github mirror source

golang image library established on a github, as https://github.com/golang/net that is https://golang.org/x/net the image library

Get golang.org/x/net package, in fact, only requires the following steps:

mkdir -p $GOPATH/src/golang.org/x
cd $GOPATH/src/golang.org/x
git clone https://github.com/golang/net.git

Other packages under golang.org/x obtaining the use of either method.

For example, many software have to go inside to use the content tools at compile time, use the following method to get:

X into the above directory, enter:

git clone https://github.com/golang/tools.git

In domestic use go get sometimes not download some sites such as golang.org dependencies.

Related Links

go proxy settings

Guess you like

Origin www.cnblogs.com/tomtellyou/p/11470289.html
Recommended