(interface{})
| 2693 | // ReadJSON, ReadMsgPack, ReadXML, ReadYAML, ReadForm, ReadQuery, ReadBody and e.t.c. |
| 2694 | type Validator interface { |
| 2695 | Struct(interface{}) error |
| 2696 | // If community asks for more than a struct validation on JSON, XML, MsgPack, Form, Query and e.t.c |
| 2697 | // then we should add more methods here, alternative approach would be to have a |
| 2698 | // `Validator:Validate(interface{}) error` and a map[reflect.Kind]Validator instead. |
no outgoing calls