Skip to content

Commit

Permalink
updated: readme docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rezakhademix committed Apr 22, 2024
1 parent 521ffd8 commit c8f15fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Each validation rule in GoValidator has it's own default message, e.g: `required
v := govalidator.New()

v.RequiredInt(user.Age, "age", ""). // age can not be null or 0
MinInt(int(user.Age), 18, "age", "") // minimum value for age is 18
MinInt(user.Age, 18, "age", "") // minimum value for age is 18

v.RequiredString(user.Name, "name", "") // name can not be null, "" or " "
MaxString(user.Name, 50, "name", "") // maximum acceptable length for name field is 50
Expand Down

0 comments on commit c8f15fb

Please sign in to comment.