GOLANG错误归纳

# go get github.com/kataras/iris@master
go get github.com/kataras/iris@master: github.com/kataras/iris@master: invalid version: Get https://proxy.golang.org/github.com/kataras/iris/@v/master.info: dial tcp 172.217.24.17:443: i/o timeout
# go env
# mkdir -p $GOPATH/src/golang.org/x
# cd $GOPATH/src/golang.org/x

go get github.com/kataras/iris@master: github.com/kataras/iris@master: invalid version

安装grpc失败

# go get google.golang.org/grpc
package google.golang.org/grpc: unrecognized import path "google.golang.org/grpc"(https fetch: Get https://google.golang.org/grpc?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
# git clone https://github.com/grpc/grpc-go.git $GOPATH/src/google.golang.org/grpc

# git clone https://github.com/golang/net.git $GOPATH/src/golang.org/x/net

# git clone https://github.com/golang/text.git $GOPATH/src/golang.org/x/text

# git clone https://github.com/golang/sys.git $GOPATH/src/golang.org/x/sys

# go get -u github.com/golang/protobuf/{proto,protoc-gen-go}

# git clone https://github.com/google/go-genproto.git $GOPATH/src/google.golang.org/genproto

# cd $GOPATH/src/

# go install google.golang.org/grpc

https://goproxy.io/

Leave Comment