We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v10
package main import ( "fmt" "time" "github.com/go-playground/validator/v10" ) var v = validator.New() type Options struct { pingPeriod time.Duration } func main() { opts := Options{pingPeriod: 10 * time.Minute} err := v.Var(opts.pingPeriod, "min=1s,max=1m") fmt.Println(err) // Key: '' Error:Field validation for '' failed on the 'max' tag // ^^^ ^^^ }
The text was updated successfully, but these errors were encountered:
I think it is related to #417
Sorry, something went wrong.
@Antonboom Indeed the unexported field is the issue here. I will close this in favor of that issue.
No branches or pull requests
Package version eg. v9, v10:
v10
Code sample, to showcase or reproduce:
The text was updated successfully, but these errors were encountered: