mirror of
https://github.com/Fishwaldo/validator.git
synced 2025-03-15 11:41:32 +00:00
Enhance example in function docu (#858)
This commit is contained in:
parent
4f55647bd7
commit
99922fccc7
1 changed files with 1 additions and 0 deletions
|
@ -182,6 +182,7 @@ func (v *Validate) ValidateMap(data map[string]interface{}, rules map[string]int
|
|||
//
|
||||
// validate.RegisterTagNameFunc(func(fld reflect.StructField) string {
|
||||
// name := strings.SplitN(fld.Tag.Get("json"), ",", 2)[0]
|
||||
// // skip if tag key says it should be ignored
|
||||
// if name == "-" {
|
||||
// return ""
|
||||
// }
|
||||
|
|
Loading…
Add table
Reference in a new issue