Documentation ¶
Overview ¶
Package yamled allows editing arbitrary YAML documents as parsed by gopkg.in/yaml.v2.
Index ¶
- type Document
- func (d *Document) Append(path Path, newValue interface{}) bool
- func (d *Document) Fill(path Path, newValue interface{}) bool
- func (d *Document) Get(path Path) (interface{}, bool)
- func (d *Document) GetArray(path Path) ([]interface{}, bool)
- func (d *Document) GetBool(path Path) (bool, bool)
- func (d *Document) GetInt(path Path) (int, bool)
- func (d *Document) GetString(path Path) (string, bool)
- func (d *Document) Has(path Path) bool
- func (d *Document) MarshalYAML() (interface{}, error)
- func (d *Document) Remove(path Path) bool
- func (d *Document) Root() yaml.MapSlice
- func (d *Document) Set(path Path, newValue interface{}) bool
- type Path
- type Step
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
func (*Document) Fill ¶
Fill will set the value at the path to the newValue, but keeps any existing sub values intact.
func (*Document) MarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.