Skip to content

Commit

Permalink
Updated the documentation for the CheckWithConfig function.
Browse files Browse the repository at this point in the history
  • Loading branch information
cinar committed Dec 30, 2024
1 parent bdb9c8e commit b69a172
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ if err != nil {
}
```

The checkers and normalizers can also be provided through a config string. Here is an example:

```golang
name := " Onur Cinar "

name, err := checker.CheckWithConfig(name, "trim requied")
if err != nil {
// Handle validation error
}

```

### Validating Individual User Input

For simpler validation, you can call individual checker functions. Here is an example:
Expand Down

0 comments on commit b69a172

Please sign in to comment.