http://labix.org/mgo
http://labix.org/gobson
- The package name from gobson has changed to bson. You should
now import from "launchpad.net/gobson/bson".
- Run is now a method on a Database as well, in addition to the Session
(thanks to Gary Burd for the suggestion):
http://goneat.org/lp/mgo/#Database.Run
- Missing Remove and RemoveAll methods implemented (also
pointed out by Gary):
http://goneat.org/lp/mgo/#Collection.Remove
http://goneat.org/lp/mgo/#Collection.RemoveAll
In addition to these, convenient support for tailable cursors is in the works,
and will be available soon.
--
Gustavo Niemeyer
http://niemeyer.net
http://niemeyer.net/blog
http://niemeyer.net/twitter
> Does mgo use gobson under the hood, or I have to programatically serialize
> and deserialize?
Right, it's done automatically for you.
You'll only have to use gobson directly if you want to use some of the
bson-specific types (e.g. bson.D, bson.ObjectId, etc), but even then
you don't have to serialize/deserialize those types by hand.. just use
them in your maps/structs/etc.