We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3cb430 + 50d47f3 commit 130dcbaCopy full SHA for 130dcba
doc.go
@@ -3,7 +3,9 @@ Package validator implements value validations for structs and individual fields
3
4
Built In Validator
5
6
- myValidator = validator.New("validate", validator.BakedInFunctions)
+ v3 no longer contains a built in Validator instance.
7
+
8
+ myValidator = validator.NewValidator("validate", validator.BakedInValidators)
9
10
errs := myValidator.ValidateStruct(//your struct)
11
valErr := myValidator.ValidateFieldByTag(field, "omitempty,min=1,max=10")
0 commit comments