tfogo / mongodb-go-tutorial

Example using the MongoDB Go Driver
https://www.mongodb.com/blog/post/mongodb-go-driver-tutorial
126 stars 38 forks source link

findOptions.SetLimit not work #5

Open monyee opened 4 years ago

monyee commented 4 years ago

when i run this demo in local env

i got the logs:

Found multiple documents (array of pointers): [0xc000052a80 0xc000052ab0 0xc000052b70 0xc000052ba0 0xc000052bd0 0xc000052c00]

findOptions.SetLimit(2) why not six?