|
@@ -198,6 +198,13 @@ func (units Units) GetRecursive() (result UnitPtrs) {
|
|
|
}, nil)
|
|
|
return
|
|
|
}
|
|
|
+func (unit Unit) GetRecursive() (result UnitPtrs) {
|
|
|
+ unit.DoRecursive(func(unit *Unit, arg interface{}) bool {
|
|
|
+ result = append(result, unit)
|
|
|
+ return true
|
|
|
+ }, nil)
|
|
|
+ return
|
|
|
+}
|
|
|
|
|
|
func (u Unit) GetChildrenPtrs() []*Unit {
|
|
|
if !u.childrenReady {
|