Reference: https://www.sunzhongwei.com/problem-of-domestic-go-get-unable-to-download?from=sidebar_new
Installation golang gin dependencies when no response for a long time, the last reported the following errors:
go get: upgrading golang.org/x/[email protected]: unrecognized import path "golang.org/x/sys" (https fetch: Get https://golang.org/x/sys?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go get: upgrading golang.org/x/[email protected]: unrecognized import path "golang.org/x/sys" (https fetch: Get https://golang.org/x/sys?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
Solution
Use seven cattle cloud go module mirror
golang 1.13 can be executed directly:
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
Then again go get download gin depend on it.