BaseToInterface converts a `validator.Base` struct to `validator.IValidator` interface.
(v *Base)
| 48 | // BaseToInterface converts a `validator.Base` struct to |
| 49 | // `validator.IValidator` interface. |
| 50 | func BaseToInterface(v *Base) IValidator { |
| 51 | performer_factory, ok := PlatformFactories[v.Platform] |
| 52 | if !ok { |
| 53 | return nil |
| 54 | } |
| 55 | |
| 56 | return performer_factory(v) |
| 57 | } |
| 58 | |
| 59 | // H for JSON builder. |
| 60 | type H map[string]any |
no outgoing calls
no test coverage detected