|
|
@ -250,8 +250,9 @@ func (u *Unmarshaler) fillSliceFromString(fieldType reflect.Type, value reflect.
|
|
|
|
func (u *Unmarshaler) fillSliceValue(slice reflect.Value, index int,
|
|
|
|
func (u *Unmarshaler) fillSliceValue(slice reflect.Value, index int,
|
|
|
|
baseKind reflect.Kind, value any, fullName string) error {
|
|
|
|
baseKind reflect.Kind, value any, fullName string) error {
|
|
|
|
if value == nil {
|
|
|
|
if value == nil {
|
|
|
|
return errUnsupportedType
|
|
|
|
return errNilSliceElement
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ithVal := slice.Index(index)
|
|
|
|
ithVal := slice.Index(index)
|
|
|
|
switch v := value.(type) {
|
|
|
|
switch v := value.(type) {
|
|
|
|
case fmt.Stringer:
|
|
|
|
case fmt.Stringer:
|
|
|
|