Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hanwenbo/mgo
https://github.com/hanwenbo/mgo
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hanwenbo/mgo
- Owner: hanwenbo
- Created: 2024-05-13T10:09:14.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-13T13:11:57.000Z (4 months ago)
- Last Synced: 2024-11-07T16:12:27.446Z (about 2 months ago)
- Language: Go
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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]
```