Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update README.md #115

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ Each validation rule in GoValidator has it's own default message, e.g: `required
}

var user User
_ := c.Bind(&user) // error ignored for simplicity


v := govalidator.New() // be sure to import govalidator/v2

v.RequiredInt(user.Age, "age", ""). // age can not be null or 0
Expand All @@ -105,7 +104,6 @@ Each validation rule in GoValidator has it's own default message, e.g: `required
}

var user User
_ := c.ShouldBind(&user) // error ignored for simplicity

v := govalidator.New()

Expand All @@ -128,7 +126,7 @@ Each validation rule in GoValidator has it's own default message, e.g: `required

var profile Profile

// after filling profile struct with binding or other methods
// after filling profile struct

v := govalidator.New()

Expand Down
Loading