Validator is designed for params checking.
| 11 | |
| 12 | // Validator is designed for params checking. |
| 13 | type Validator interface { |
| 14 | Validate() error |
| 15 | } |
| 16 | |
| 17 | // middleware: unmarshal req.Params(JSON array) to pre-defined structures (Object). |
| 18 | func processParams(h HandlerFunc, paramsType reflect.Type) HandlerFunc { |
no outgoing calls
no test coverage detected