()
| 76 | } |
| 77 | |
| 78 | func 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 |
| 93 | func parse(aliasTag string, out any, data map[string][]string, files ...map[string][]*multipart.FileHeader) error { |
nothing calls this directly
no test coverage detected