mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
12 lines
299 B
Go
12 lines
299 B
Go
package yqlib
|
|
|
|
import "container/list"
|
|
|
|
func PipeOperator(d *dataTreeNavigator, matchingNodes *list.List, pathNode *PathTreeNode) (*list.List, error) {
|
|
lhs, err := d.GetMatchingNodes(matchingNodes, pathNode.Lhs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return d.GetMatchingNodes(lhs, pathNode.Rhs)
|
|
}
|