MCPcopy Index your code
hub / github.com/go-playground/validator / wrapStructLevelFunc

Function wrapStructLevelFunc

struct_level.go:16–20  ·  view source on GitHub ↗

wrapStructLevelFunc wraps normal StructLevelFunc makes it compatible with StructLevelFuncCtx

(fn StructLevelFunc)

Source from the content-addressed store, hash-verified

14
15// wrapStructLevelFunc wraps normal StructLevelFunc makes it compatible with StructLevelFuncCtx
16func 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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…