2
0

Set will call Get on src if possible

This commit is contained in:
Jack Christensen
2020-02-19 11:58:49 -06:00
parent 666bd514e2
commit 55a56add23
50 changed files with 341 additions and 0 deletions
+7
View File
@@ -21,6 +21,13 @@ func (dst *Float4Array) Set(src interface{}) error {
return nil
}
if value, ok := src.(interface{ Get() interface{} }); ok {
value2 := value.Get()
if value2 != value {
return dst.Set(value2)
}
}
switch value := src.(type) {
case []float32: