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