ValidateMap validates map data from a map of tags
(data map[string]interface{}, rules map[string]interface{})
| 193 | |
| 194 | // ValidateMap validates map data from a map of tags |
| 195 | func (v *Validate) ValidateMap(data map[string]interface{}, rules map[string]interface{}) map[string]interface{} { |
| 196 | return v.ValidateMapCtx(context.Background(), data, rules) |
| 197 | } |
| 198 | |
| 199 | // RegisterTagNameFunc registers a function to get alternate names for StructFields. |
| 200 | // |