Go-Mongo is a MongoDB driver for the Go programming language.
Go-Mongo is designed to be used with mongos in production environments. If you do not plan to use mongos, then mgo is probably the better driver to use.
Features:
- Marshalling and unmarshalling of documents to Go types using a built-in BSON encoder.
- Streaming result reader. The driver reduces latency and memory use by returning documents to the application before the complete result batch is received.
- Helpers for common database commands.
- Connection pooling.
- Simple and clean design.
Use the go tool to install Go-Mongo:
go get github.com/garyburd/go-mongo/mongo
Go-Mongo is available under the Apache License, Version 2.0.
Discussion related to the use and development of Go-Mongo is held at the Go-Mongo User Group.
You can also contact the author through Github.