Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jun 3, 2019
1 parent f79359b commit ac76aac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ The package is a generic Go data validate and filter tool library.

## Validate Struct

The struct can implement three interface methods, which is convenient to do some customization:

- `ConfigValidation(v *Validation)` will be called after the validator instance is created
- `Messages() map[string]string` can customize the validator error message
- `Translates() map[string]string` can customize field translation

```go
package main

Expand Down

0 comments on commit ac76aac

Please sign in to comment.