yq/pkg/yqlib/read_navigation_strategy.go

18 lines
384 B
Go
Raw Permalink Normal View History

2019-12-25 01:11:04 +00:00
package yqlib
2019-12-28 07:19:37 +00:00
func ReadNavigationStrategy() NavigationStrategy {
return &NavigationStrategyImpl{
visitedNodes: []*NodeContext{},
pathParser: NewPathParser(),
2019-12-28 07:19:37 +00:00
followAlias: func(nodeContext NodeContext) bool {
2019-12-25 01:11:04 +00:00
return true
},
2019-12-28 07:19:37 +00:00
autoCreateMap: func(nodeContext NodeContext) bool {
2019-12-25 01:11:04 +00:00
return false
},
2019-12-28 07:19:37 +00:00
visit: func(nodeContext NodeContext) error {
2019-12-25 01:11:04 +00:00
return nil
},
}
}