Hi,

is there a way to use MongoDB query syntax or something similar to filter arrays/slices or validate data in Go?

In (node)JS there’s Sift.js or (less MongoDB style) Underscore/lodash.

Possible use cases:

  • Easily readable validation syntax (at least for people knowing MongoDB)
  • mocking a MongoDB for dev purposes
  • filtering arrays/slices more easily

I’m relatively new to Go so maybe there already is a best practice to do stuff like that, I don’t know of.