Add map type to initialize type list

This commit is contained in:
Masaaki Goshima 2021-03-29 02:57:41 +09:00
parent e660ae468d
commit bfbfa474d6
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ func newSliceDecoder(dec decoder, elemType *rtype, size uintptr, structName, fie
return &sliceDecoder{ return &sliceDecoder{
valueDecoder: dec, valueDecoder: dec,
elemType: elemType, elemType: elemType,
isElemPointerType: elemType.Kind() == reflect.Ptr, isElemPointerType: elemType.Kind() == reflect.Ptr || elemType.Kind() == reflect.Map,
size: size, size: size,
arrayPool: sync.Pool{ arrayPool: sync.Pool{
New: func() interface{} { New: func() interface{} {