I'm making some logic for something but I'm stuck in the problem I have an a query of mongodb that takes a regular expression keyword and search for the record. but there is a problem I have an if statement in which there is a condition let I have an example:-
value := 'life'
keyword := 'Life'
if value == keyword{
// I want this if will give me true.
}
Is there any method in golang to compare it like a regular expression that doesn't matter is there is capitalization or not it will check 'l' == 'L' gives true.
For Helping me Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire