Documentation ¶
Index ¶
- type Document
- func (d *Document) Append(path Path, newValue interface{}) bool
- func (d *Document) DecodeAtPath(path Path, dst interface{}) error
- func (d *Document) Equal(other *Document) bool
- func (d *Document) Fill(path Path, newValue 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) GetNode(path Path) (*yaml.Node, bool)
- func (d *Document) GetString(path Path) (string, bool)
- func (d *Document) GetValue(path Path) (interface{}, bool)
- func (d *Document) Has(path Path) bool
- func (d *Document) MarshalYAML() (interface{}, error)
- func (d *Document) Remove(path Path) bool
- 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 NewDocumentFromNode ¶ added in v2.21.0
func (*Document) DecodeAtPath ¶ added in v2.21.0
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.