Skip to content

Commit

Permalink
Updated the documentation for the CheckWithConfig function. (#160)
Browse files Browse the repository at this point in the history
# Describe Request

Updated the documentation for the CheckWithConfig function.

# Change Type

Documentation improvement.
  • Loading branch information
cinar authored Dec 30, 2024
1 parent b14b02d commit 21065d3
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 21065d3

Please sign in to comment.