2016年1月4日
摘要: 连接集群mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]所以集群的话格式是GlobalMgoSession, err := mgo.Dial("... 阅读全文
posted @ 2016-01-04 17:32 架构师刀哥 阅读(1398) 评论(0) 推荐(0) 编辑