Here is a list of changes in this release:
- mgo and gobson were ported to the weekly.2011-04-27 release of Go.
- The Iter.For and Query.For methods will now return err == nil when
they iterate successfully up to the last available result, rather
than mgo.NotFound.
- New Explain and Hint methods for query optimization:
http://goneat.org/lp/mgo#Query.Explain
http://goneat.org/lp/mgo#Query.Hint
- GridFS support will now ensure an index exists on {"files_id", "n"}
when the first file is created.
- The new GridFSFile type was renamed to GridFile.
- Other minor renamings continuing the consitency improvements:
mgo.CollectStats(true) => mgo.SetStats(true)
mgo.Debug(true) => mgo.SetDebug(true)
- In addition to byte slices, gobson can now marshal and
unmarshal byte arrays as binary BSON data.
--
Gustavo Niemeyer
http://niemeyer.net
http://niemeyer.net/blog
http://niemeyer.net/twitter
> Great work, Gustavo!
Thanks!
>> - The Iter.For and Query.For methods will now return err == nil when
>> they iterate successfully up to the last available result, rather
>> than mgo.NotFound.
>
> Im using Iter.Next in a for{} loop like in the example here:
Nothing changed there. What changed was specifically the For
methods, because it's strange to have a non-nil error when they
did exactly what was requested.