Skip to content

Commit

Permalink
Merge pull request #22 from joeybloggs/v4-development
Browse files Browse the repository at this point in the history
V4 development
  • Loading branch information
Dean Karn authored and Dean Karn committed Apr 6, 2015
2 parents a3cb430 + 50d47f3 commit 130dcba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ Package validator implements value validations for structs and individual fields
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)
valErr := myValidator.ValidateFieldByTag(field, "omitempty,min=1,max=10")
Expand Down

0 comments on commit 130dcba

Please sign in to comment.