That's right. As a hint, this is commonly used without the number, so
you get a slice out rather than an array (as in, []string{"10",
"11"}).
--
Gustavo Niemeyer
http://niemeyer.net
http://niemeyer.net/plus
http://niemeyer.net/twitter
http://niemeyer.net/blog
-- I'm not absolutely sure of anything.
bson.M is a Go map type. The keys must be variables or constants
rather than field names (bson.M{"foo": "bar"}, etc).
> Thanks for you work Gustavo, I'm really enjoying this combination of Go,
> Mongo and mgo.
Nice, glad to hear that!
That should be right. In that style, you can map any of the queries
described at the documentation precisely:
http://www.mongodb.org/display/DOCS/Advanced+Queries