Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hanwenbo/mgo


https://github.com/hanwenbo/mgo

Last synced: 6 days ago
JSON representation

Awesome Lists containing this project

README

        

## mgo

Mgo is based on the official library [mongo](https://github.com/mongodb/mongo-go-driver).


### Example of use

```go
import "github.com/hanwenbo/mgo"

// connect mongodb
db, err := mgo.Init("mongodb://root:[email protected]:27017/account")

// close mongodb
defer Close(db)
```

### Publish

```bash
git tag v1.0.10
git push origin v1.0.10
```

### Install
```bash
go get github.com/hanwenbo/mgo@lastest
// update
go get -u github.com/hanwenbo/mgo@lastest

// or
go get -u github.com/hanwenbo/[email protected]
```