Created
July 11, 2016 18:07
-
-
Save sha1sum/8bff4117fe341675421a231e45dabaee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bSubs := BSONCollection{} | |
err := q(query).All(&bSubs) | |
// bSubs is still a zero-value BSONCollection, not bsonCol |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mquery.AllFunc = func(results interface{}) error { // this is running | |
results = bsonCol | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment