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

Function getDecoderPool

binder/mapping.go:40–50  ·  view source on GitHub ↗
(tag string)

Source from the content-addressed store, hash-verified

38)
39
40func getDecoderPool(tag string) *sync.Pool {
41 decoderPoolMu.RLock()
42 pool := decoderPoolMap[tag]
43 if pool == nil {
44 decoderPoolMu.RUnlock()
45 panic(fmt.Sprintf("decoder pool not initialized for tag %q", tag))
46 }
47 decoderPoolMu.RUnlock()
48
49 return pool
50}
51
52// SetParserDecoder allow globally change the option of form decoder, update decoderPool
53func SetParserDecoder(parserConfig ParserConfig) {

Callers 2

parseToStructFunction · 0.85
Test_decoderPoolMapInitFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_decoderPoolMapInitFunction · 0.68