|
|
|
@ -518,7 +518,8 @@ func (u *Unmarshaler) fillSliceValue(slice reflect.Value, index int, baseKind re
|
|
|
|
|
target.Set(reflect.ValueOf(value))
|
|
|
|
|
ithVal.Set(target.Addr())
|
|
|
|
|
return nil
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ithVal.Kind() != reflect.TypeOf(value).Kind() {
|
|
|
|
|
return errTypeMismatch
|
|
|
|
|
}
|
|
|
|
@ -527,7 +528,6 @@ func (u *Unmarshaler) fillSliceValue(slice reflect.Value, index int, baseKind re
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (u *Unmarshaler) generateMap(keyType, elemType reflect.Type, mapValue interface{}) (reflect.Value, error) {
|
|
|
|
|
mapType := reflect.MapOf(keyType, elemType)
|
|
|
|
|