Enhance example in function docu (#858)

pull/936/head
gosua 2 years ago committed by GitHub
parent 4f55647bd7
commit 99922fccc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      validator_instance.go

@ -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…
Cancel
Save