Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom validators #230

Closed
techsavvyme opened this issue May 29, 2023 · 1 comment
Closed

Custom validators #230

techsavvyme opened this issue May 29, 2023 · 1 comment

Comments

@techsavvyme
Copy link

Sample code at https://gin-gonic.com/docs/examples/custom-validators/ does not work with latest Gin software and validator dependency.

go.mod:
require (
github.com/gin-gonic/gin v1.9.0
github.com/go-playground/validator/v10 v10.14.0
}

Error:
invalid operation: cannot call non-function binding.Validator.Engine() (value of type any)

@techsavvyme
Copy link
Author

My apologies. There is no bug. I had a syntax error trying to use the example in my own code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant