cassandra for go

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

阅读更多
个人分类: Go
上一篇VSCode for go 1.7
下一篇docker swarm在阿里云主机上single node部署沙箱环境
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭