mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 13:48:06 +00:00
21 lines
523 B
Go
21 lines
523 B
Go
|
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
|
||
|
},
|
||
|
}
|
||
|
}
|