Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rezakhademix authored Jun 5, 2024
1 parent 91a4c02 commit 9250f2d
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 @@ -129,7 +129,7 @@ Each validation rule in GoValidator has it's own default message, e.g: `required
v := govalidator.New()
v.CustomRule(profile.Name != "", "name", "name is required") // check is a method to define rule as first parameter and then pass field name and validation error message
v.CustomRule(profile.Name != "", "name", "name is required") // CustomRule is a method to define a custom rule as first parameter and then pass field name and validation error message
v.CustomRule(profile.Age > 18, "age", "age must be greater than 18")
Expand Down

0 comments on commit 9250f2d

Please sign in to comment.