go: golang.org/x/sys@v0.0.0-20190222072716-a9d3bda3a223: 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: golang.org/x/net@v0.0.0-20190503192946-f4e77d36d62c: unrecognized import path "golang.org/x/net" (https fetch: Get https://golang.org/x/net?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
解决方式:
➜ pika git:(master) ✗ export GOPROXY=https://goproxy.io
➜ pika git:(master) ✗ go get -u github.com/gin-gonic/gin
go: golang.org/x/sys@v0.0.0-20190222072716-a9d3bda3a223: 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: golang.org/x/net@v0.0.0-20190503192946-f4e77d36d62c: unrecognized import path "golang.org/x/net" (https fetch: Get https://golang.org/x/net?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go: error loading module requirements
➜ pika git:(master) ✗ golang.org/x/text v0.3.0
zsh: no such file or directory: golang.org/x/text
➜ pika git:(master) ✗ export GOPROXY=https://goproxy.io
➜ pika git:(master) ✗ go get -u github.com/gin-gonic/gin
go: finding github.com/golang/text v0.3.0
go: finding golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c
go: finding golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223
go: finding github.com/modern-go/concurrent latest
go: finding gopkg.in/yaml.v2 v2.2.4
go: finding github.com/mattn/go-isatty v0.0.9
go: finding github.com/json-iterator/go v1.1.7
go: finding golang.org/x/sys latest
go: finding golang.org/x/net latest
go: finding gopkg.in/check.v1 latest
go: finding github.com/ugorji/go v1.1.7
go: finding golang.org/x/text v0.3.2
go: finding golang.org/x/crypto latest
go: finding github.com/gin-contrib/sse v0.1.0
go: finding github.com/stretchr/testify v1.4.0
go: finding github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421
go: finding github.com/stretchr/objx v0.2.0
go: finding github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742
go: finding github.com/davecgh/go-spew v1.1.1
go: finding github.com/google/gofuzz v1.0.0
go: finding golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3
go: finding golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a
go: finding github.com/ugorji/go/codec v1.1.7
go: finding golang.org/x/sys v0.0.0-20190412213103-97732733099d
go: downloading github.com/gin-gonic/gin v1.4.0
go: extracting github.com/gin-gonic/gin v1.4.0
go: downloading github.com/mattn/go-isatty v0.0.9
go: downloading github.com/ugorji/go v1.1.7
go: downloading gopkg.in/go-playground/validator.v8 v8.18.2
go: downloading gopkg.in/yaml.v2 v2.2.4
go: downloading github.com/gin-contrib/sse v0.1.0
go: extracting github.com/mattn/go-isatty v0.0.9
go: extracting github.com/ugorji/go v1.1.7
go: downloading github.com/ugorji/go/codec v1.1.7
go: extracting gopkg.in/go-playground/validator.v8 v8.18.2
go: extracting github.com/gin-contrib/sse v0.1.0
go: extracting gopkg.in/yaml.v2 v2.2.4
go: extracting github.com/ugorji/go/codec v1.1.7
➜ pika git:(master) ✗