feat: add option early return in case of error
Fixes Or Enhances
Make sure that you've checked the boxes below before you submit PR:
- [X] Tests exist or have been written that cover this particular change.
@go-playground/validator-maintainers
resolve Issue - 1371
coverage: 73.74% (+0.01%) from 73.73% when pulling 5c40a759d3e99d58839de1503ad1aa0e78488ddc on thenicolau:feature/add-early-return-error into 6a38036e64751ad983b154546ff08df2bff9cc28 on go-playground:master.
Asking about the use case here to learn if it's worth saving a few nanoseconds|microseconds :) https://github.com/go-playground/validator/issues/1371#issuecomment-2660989420
I noticed that this old PR had a merge problem, and the issue linked to it was also updated, so I fixed the issues and it is now ready to be reviewed again