Documentation ¶
Index ¶
- type Document
- func (d *Document) Append(path Path, newValue interface{}) bool
- func (d *Document) Equal(other *Document) 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) 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) Equal ¶ added in v2.17.0
Equal checks if d is semantically equivalent to other. This means memory equality is not checked, but rather the actual values.
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.