asaskevich / govalidator

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

added IsDecimal function to validator.go, issue #467 #470

Open doctorhoseinpour opened 2 years ago

doctorhoseinpour commented 2 years ago

issue #467 add IsDecimal function which returns true if string is null or ParseFloat method does not generate an error. if the string does not contain a "." , the function will return false