mirror of
https://github.com/Fishwaldo/validator.git
synced 2025-03-15 11:41:32 +00:00
update RegisterStructValidationMapRules docs
This commit is contained in:
parent
d0d0c355aa
commit
02c12dd7ef
1 changed files with 2 additions and 1 deletions
|
@ -284,7 +284,8 @@ func (v *Validate) RegisterStructValidationCtx(fn StructLevelFuncCtx, types ...i
|
|||
}
|
||||
}
|
||||
|
||||
// RegisterStructValidationMapRules registers validate map rules
|
||||
// RegisterStructValidationMapRules registers validate map rules.
|
||||
// Be aware that map validation rules supersede those defined on a/the struct if present.
|
||||
//
|
||||
// NOTE: this method is not thread-safe it is intended that these all be registered prior to any validation
|
||||
func (v *Validate) RegisterStructValidationMapRules(rules map[string]string, types ...interface{}) {
|
||||
|
|
Loading…
Add table
Reference in a new issue