Updated the documentation for the CheckWithConfig function. (#160)

# Describe Request

Updated the documentation for the CheckWithConfig function.

# Change Type

Documentation improvement.
This commit is contained in:
Onur Cinar 2024-12-30 12:58:36 -08:00 committed by GitHub
commit 21065d3d76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: