wrapStructLevelFunc wraps normal StructLevelFunc makes it compatible with StructLevelFuncCtx
(fn StructLevelFunc)
| 14 | |
| 15 | // wrapStructLevelFunc wraps normal StructLevelFunc makes it compatible with StructLevelFuncCtx |
| 16 | func wrapStructLevelFunc(fn StructLevelFunc) StructLevelFuncCtx { |
| 17 | return func(ctx context.Context, sl StructLevel) { |
| 18 | fn(sl) |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | // StructLevel contains all the information and helper functions |
| 23 | // to validate a struct |
no outgoing calls
no test coverage detected
searching dependent graphs…