mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-06 02:03:24 +08:00
include traverse as a operator token
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package yqlib
|
||||
|
||||
// import yaml "gopkg.in/yaml.v3"
|
||||
|
||||
// type NodeLeafContext struct {
|
||||
// Node *yaml.Node
|
||||
// Head interface{}
|
||||
// PathStack []interface{}
|
||||
// }
|
||||
|
||||
// func newNodeLeafContext(node *yaml.Node, head interface{}, tailpathStack []interface{}) NodeLeafContext {
|
||||
// newPathStack := make([]interface{}, len(pathStack))
|
||||
// copy(newPathStack, pathStack)
|
||||
// return NodeContext{
|
||||
// Node: node,
|
||||
// Head: head,
|
||||
// PathStack: newPathStack,
|
||||
// }
|
||||
// }
|
||||
|
||||
// type DataTreeNavigator interface {
|
||||
// Traverse(value *NodeLeafContext)
|
||||
// }
|
||||
Reference in New Issue
Block a user