govalidator icon indicating copy to clipboard operation
govalidator copied to clipboard

Is there a way to validate against multiple fields in one IsValidField func?

Open collinalexbell opened this issue 6 years ago • 2 comments

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?

collinalexbell avatar Apr 18 '18 22:04 collinalexbell

Yes. Last example in this section of the docs: https://github.com/asaskevich/govalidator#custom-validation-functions

ghost avatar Aug 04 '18 13:08 ghost

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.

sergeyglazyrindev avatar Oct 17 '21 21:10 sergeyglazyrindev