yq/pkg/yqlib/read_navigation_strategy.go

21 lines
523 B
Go
Raw Normal View History

2019-12-25 01:11:04 +00:00
package yqlib
import (
yaml "gopkg.in/yaml.v3"
)
func ReadNavigationSettings() NavigationSettings {
return &NavigationSettingsImpl{
visitedNodes: []*VisitedNode{},
followAlias: func(node *yaml.Node, head string, tail []string, pathStack []interface{}) bool {
return true
},
autoCreateMap: func(node *yaml.Node, head string, tail []string, pathStack []interface{}) bool {
return false
},
visit: func(node *yaml.Node, head string, tail []string, pathStack []interface{}) error {
return nil
},
}
}