improve function ScanList for package gdb

This commit is contained in:
john
2020-07-05 12:17:56 +08:00
parent 12d58e4d08
commit de8f29751d

View File

@ -236,8 +236,8 @@ func (r Result) ScanList(listPointer interface{}, attributeName string, relation
}
attrValue.Set(e)
case reflect.Map:
// TODO
default:
return fmt.Errorf(`unsupport attribute type: %s`, attrKind.String())
}
}
reflect.ValueOf(listPointer).Elem().Set(arrayValue)