Debian Codegraph @

parsing/yaml/yaml.go

raw symbols SCIP
1 package yaml
2
3 import (
4 "github.com/tomwright/dasel/v3/model"
5 "github.com/tomwright/dasel/v3/parsing"
6 "go.yaml.in/yaml/v4"
7 )
8
9 // YAML represents the YAML file format.
10 const YAML parsing.Format = "yaml"
11
12 func init() {
13 parsing.RegisterReader(YAML, newYAMLReader)
14 parsing.RegisterWriter(YAML, newYAMLWriter)
15 }
16
17 type yamlValue struct {
18 node *yaml.Node
19 value *model.Value
20 compact bool
21 expansionDepth int
22 maxExpansionDepth int
23 expansionBudget *int
24 }