Merge pull request #22 from joeybloggs/v4-development

V4 development
pull/23/head v4.0.1
Dean Karn 10 years ago
commit 130dcba7a5
  1. 4
      doc.go

@ -3,7 +3,9 @@ Package validator implements value validations for structs and individual fields
Built In Validator Built In Validator
myValidator = validator.New("validate", validator.BakedInFunctions) v3 no longer contains a built in Validator instance.
myValidator = validator.NewValidator("validate", validator.BakedInValidators)
errs := myValidator.ValidateStruct(//your struct) errs := myValidator.ValidateStruct(//your struct)
valErr := myValidator.ValidateFieldByTag(field, "omitempty,min=1,max=10") valErr := myValidator.ValidateFieldByTag(field, "omitempty,min=1,max=10")

Loading…
Cancel
Save