MCPcopy
hub / github.com/gofiber/fiber / init

Function init

binder/mapping.go:78–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76}
77
78func init() {
79 decoderPoolMu.Lock()
80 defer decoderPoolMu.Unlock()
81
82 for _, tag := range tags {
83 decoderPoolMap[tag] = &sync.Pool{New: func() any {
84 return decoderBuilder(tag, ParserConfig{
85 IgnoreUnknownKeys: true,
86 ZeroEmpty: true,
87 })
88 }}
89 }
90}
91
92// parse data into the map or struct
93func parse(aliasTag string, out any, data map[string][]string, files ...map[string][]*multipart.FileHeader) error {

Callers

nothing calls this directly

Calls 3

decoderBuilderFunction · 0.85
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected