Skip to content

Commit 99922fc

Browse files
authored
Enhance example in function docu (#858)
1 parent 4f55647 commit 99922fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

validator_instance.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ func (v *Validate) ValidateMap(data map[string]interface{}, rules map[string]int
182182
//
183183
// validate.RegisterTagNameFunc(func(fld reflect.StructField) string {
184184
// name := strings.SplitN(fld.Tag.Get("json"), ",", 2)[0]
185+
// // skip if tag key says it should be ignored
185186
// if name == "-" {
186187
// return ""
187188
// }

0 commit comments

Comments
 (0)