[#7022] added support for unmarshaling into interface fields

This commit is contained in:
Gani Georgiev
2025-07-18 23:11:05 +03:00
parent 62c8523070
commit 5ca79eb85d
3 changed files with 23 additions and 1 deletions

View File

@@ -296,6 +296,10 @@ func setRegularReflectedValue(rv reflect.Value, value string) error {
}
rv.SetFloat(v)
case reflect.Interface:
if rv.CanSet() {
rv.Set(reflect.ValueOf(inferValue(value)))
}
default:
return errors.New("unknown value type " + rv.Kind().String())
}