Set will call Get on src if possible
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user