We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cbeb61 commit e7c5966Copy full SHA for e7c5966
source/includes/usage-examples/code-snippets/find.go
@@ -43,7 +43,7 @@ func main() {
43
}
44
// end find
45
46
- var results []bson.M
+ results := []bson.M{}
47
if err = cursor.All(context.TODO(), &results); err != nil {
48
panic(err)
49
0 commit comments