Custom validators
techsavvyme opened this issue · 1 comments
techsavvyme commented
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 commented
My apologies. There is no bug. I had a syntax error trying to use the example in my own code.