I am using Mongo's Primitive
package to get a bson value based on what was submitted. This is what I am currently doing
school = "Havard"
value = primitive.Regex{Pattern: school, Options: ""}
This will only match bson values that are Havard
, how do I make this regex case insensitive and make it match for example, hava
In all, if I use hava
for a search, I should also get Havard