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{
valueDecoder: dec,
elemType: elemType,
isElemPointerType: elemType.Kind() == reflect.Ptr,
isElemPointerType: elemType.Kind() == reflect.Ptr || elemType.Kind() == reflect.Map,
size: size,
arrayPool: sync.Pool{
New: func() interface{} {