Skip to content

Instantly share code, notes, and snippets.

@sha1sum
Created July 11, 2016 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sha1sum/8bff4117fe341675421a231e45dabaee to your computer and use it in GitHub Desktop.
Save sha1sum/8bff4117fe341675421a231e45dabaee to your computer and use it in GitHub Desktop.
bSubs := BSONCollection{}
err := q(query).All(&bSubs)
// bSubs is still a zero-value BSONCollection, not bsonCol
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