FieldWithValue validates a single field, against another fields value using tag style validation and returns nil or ValidationErrors. You will need to assert the error if it's not nil i.e. err.(validator.ValidationErrors) to access the map of errors. NOTE: it returns ValidationErrors instead of a single FieldError because this can also validate Array, Slice and maps fields which may contain more than one error

FieldWithValue is referenced in 0 repositories