Skip to content

Commit

Permalink
Merge pull request #113 from rezakhademix/fix-update-installation-ver…
Browse files Browse the repository at this point in the history
…sion

fix: update installation version in README.md
  • Loading branch information
rezakhademix authored Oct 27, 2024
2 parents a3f05f0 + 7e6cdec commit 66e2267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Go Validator includes a set of validation rules and a handy `CustomRule()` metho
## Installation
Run the following command to install the package:
```
go get github.com/rezakhademix/govalidator
go get github.com/rezakhademix/govalidator/v2
```
## Import
Import package in your code-base by using:
Expand Down Expand Up @@ -166,7 +166,7 @@ Each validation rule in GoValidator has it's own default message, e.g: `required
// after filling CategoryCreateReq struct with binding or other methods
v := govalidator.New() // be sure to import govalidator/v2
v := govalidator.New().WithRepo(validatorRepo) // be sure to import govalidator/v2
ok := v.
RequiredString(req.Name, "name", msgCategoryNameRequired).
Expand Down

0 comments on commit 66e2267

Please sign in to comment.