2
0

Better CompositeType and ArrayType Get implementation

This commit is contained in:
Jack Christensen
2020-06-05 13:39:53 -05:00
parent 9d847241cb
commit 43e4070cb4
3 changed files with 12 additions and 8 deletions
+5 -1
View File
@@ -84,7 +84,11 @@ func (dst *ArrayType) Set(src interface{}) error {
func (dst ArrayType) Get() interface{} {
switch dst.status {
case Present:
return dst.elements
elementValues := make([]interface{}, len(dst.elements))
for i := range dst.elements {
elementValues[i] = dst.elements[i].Get()
}
return elementValues
case Null:
return nil
default: