asaskevich / govalidator

[Go] Package of validators and sanitizers for strings, numerics, slices and structs
MIT License
6.05k stars 555 forks source link

added IsInCSV to validator.go, issue #468 #471

Open doctorhoseinpour opened 2 years ago

doctorhoseinpour commented 2 years ago

issue #468 added IsInCSV function to validator.go which takes the given string and file path then firstly attempts to find and open the csv file and secondly tries to find the input string in the csv records and by default if the input string is empty returns true