Skip to content

Commit

Permalink
RegisterTagNameFunc doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
teathedev committed Jul 20, 2023
1 parent bd1113d commit 4a66afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (v *Validate) ValidateMap(data map[string]interface{}, rules map[string]int
return v.ValidateMapCtx(context.Background(), data, rules)
}

// RegisterTagNameFunc registers a function to get alternate names for StructFields.
// RegisterTagNameFunc registers a function to get alternate names (other than sturct field names) from FieldName.
//
// eg. to use the names which have been specified for JSON representations of structs, rather than normal Go field names:
//
Expand Down

0 comments on commit 4a66afc

Please sign in to comment.