mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-13 22:38:04 +00:00
12 lines
319 B
Go
12 lines
319 B
Go
package yqlib
|
|
|
|
import "container/list"
|
|
|
|
func pipeOperator(d *dataTreeNavigator, matchingNodes *list.List, expressionNode *ExpressionNode) (*list.List, error) {
|
|
lhs, err := d.GetMatchingNodes(matchingNodes, expressionNode.Lhs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return d.GetMatchingNodes(lhs, expressionNode.Rhs)
|
|
}
|