Open sushengbuhuo opened 5 years ago
network access failed You can use the following library, update to local and change the name
go get -u github.com/golang/text
mv $GOPATH/src/github.com/golang/text $GOPATH/src/golang.org/x/text
go get -u github.com/golang/crypto
mv $GOPATH/src/github.com/golang/crypto $GOPATH/src/golang.org/x/crypto
It looks like golang.org is blocked in China, but can be accessed through https://golang.google.cn.
https://blog.golang.org/hello-china (which you probably can't read) but there are Chinese forums about Go on https://gocn.vip/ where people might have alternatives for this specific issue. @98P 's solution should work just fine too.
A quick search references some documents too, such as https://github.com/northbright/Notes/blob/master/Golang/china/get-golang-packages-on-golang-org-in-china.md