func findChild(x pathres.PathRes, p *pathexpr.PathExpr, ret *[]pathres.PathRes) { ch := x.GetChildren() for i := range ch { if ch[i].EvalPath(p) { *ret = append(*ret, ch[i]) } } }