govalidator
govalidator copied to clipboard
Is there a way to validate against multiple fields in one IsValidField func?
Lets say I have a simple struct with a min and max field and I want to make sure that min < max. Does govalidator provide a means to do this?
Yes. Last example in this section of the docs: https://github.com/asaskevich/govalidator#custom-validation-functions
Hello guys! I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back Link to my repo: create issue there and we'll discuss it.