SetConfig sets the set of map key-value pairs associated with this validator's configuration.
(config map[string]any)
| 716 | |
| 717 | // SetConfig sets the set of map key-value pairs associated with this validator's configuration. |
| 718 | func (v *Validator) SetConfig(config map[string]any) *Validator { |
| 719 | v.Config = config |
| 720 | return v |
| 721 | } |
| 722 | |
| 723 | // ConfigValue retrieves the value associated with the config key name, if one exists. |
| 724 | func (v *Validator) ConfigValue(name string) (any, bool) { |
no outgoing calls