yq/pkg/yqlib/treeops/operator_value.go

9 lines
279 B
Go
Raw Normal View History

2020-10-20 04:33:20 +00:00
package treeops
2020-10-21 01:54:58 +00:00
import "container/list"
2020-10-20 04:33:20 +00:00
2020-10-21 01:54:58 +00:00
func ValueOperator(d *dataTreeNavigator, matchMap *list.List, pathNode *PathTreeNode) (*list.List, error) {
2020-10-20 05:27:30 +00:00
log.Debug("value = %v", pathNode.Operation.CandidateNode.Node.Value)
2020-10-20 04:33:20 +00:00
return nodeToMap(pathNode.Operation.CandidateNode), nil
}