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{},
|
2020-01-11 08:30:27 +00:00
|
|
|
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
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|