Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use correct pointer in errors.As(). Fix "panic: errors: *target must …
…be interface or implement error" in examples. (#1378) Only *InvalidValidationError implements error, so we must use double pointer. good explanation: https://www.reddit.com/r/golang/comments/txi397/comment/i3lybab/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button and https://stackoverflow.com/a/69448087/9066110 ## Fixes Or Enhances Fixes `panic: errors: *target must be interface or implement error` for `_examples/simple/` and `_examples/struct-level/` that was introduced in #1346 **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
- Loading branch information