Skip to content

Commit

Permalink
Enhance example in function docu (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
gosua committed May 1, 2022
1 parent 4f55647 commit 99922fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions validator_instance.go
Expand Up @@ -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 ""
// }
Expand Down

0 comments on commit 99922fc

Please sign in to comment.