yq/pkg/yqlib/read_navigation_strategy.go

17 lines
351 B
Go
Raw 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{},
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
},
}
}