mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
18 lines
384 B
Go
18 lines
384 B
Go
package yqlib
|
|
|
|
func ReadNavigationStrategy() NavigationStrategy {
|
|
return &NavigationStrategyImpl{
|
|
visitedNodes: []*NodeContext{},
|
|
pathParser: NewPathParser(),
|
|
followAlias: func(nodeContext NodeContext) bool {
|
|
return true
|
|
},
|
|
autoCreateMap: func(nodeContext NodeContext) bool {
|
|
return false
|
|
},
|
|
visit: func(nodeContext NodeContext) error {
|
|
return nil
|
|
},
|
|
}
|
|
}
|