hanwenbo / mgo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mgo

Mgo is based on the official library mongo.


Example of use

import "github.com/hanwenbo/mgo"

// connect mongodb
db, err := mgo.Init("mongodb://root:123456@192.168.3.37:27017/account")

// close mongodb
defer Close(db)

Publish

git tag v1.0.9
git push origin v1.0.9

Install

go get github.com/hanwenbo/mgo@lastest
// update
go get -u github.com/hanwenbo/mgo@lastest

// or 
go get -u github.com/hanwenbo/mgo@v1.0.9

About


Languages

Language:Go 100.0%