1.https://github.com/gocql/gocql
go get github.com/gocql/gocql
package golang.org/x/net/context: unrecognized import path “golang.org/x/net/context” (https fetch: Get https://golang.org/x/net/context?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
package gopkg.in/inf.v0: unrecognized import path “gopkg.in/inf.v0” (https fetch: Get https://gopkg.in/inf.v0?go-get=1: EOF)
解决办法:
1) 用github.com/golang/net 替换 golang.org/x/net
go get github.com/golang/net
mkdir -p $GOPATH/src/golang.org/x
ln -s $GOPATH/src/github.com/golang/net $GOPATH/src/golang.org/x/net
2) 安装gopkg.in/inf.v0
go get gopkg.in/inf.v0
2.https://github.com/gocassa/gocassa
有疑问加站长微信联系(非本文作者)