Documentation
¶
Index ¶
- type Yaml
- func (y *Yaml) Array() ([]*Yaml, error)
- func (y *Yaml) Bool() (bool, error)
- func (y *Yaml) Float() (float64, error)
- func (y *Yaml) Get(key any) *Yaml
- func (y *Yaml) GetArraySize() (int, error)
- func (y *Yaml) GetIndex(index int) *Yaml
- func (y *Yaml) GetMapKeys() ([]string, error)
- func (y *Yaml) GetPath(branch ...any) *Yaml
- func (y *Yaml) Int() (int, error)
- func (y *Yaml) IsArray() bool
- func (y *Yaml) IsFound() bool
- func (y *Yaml) IsMap() bool
- func (y *Yaml) Map() (map[string]*Yaml, error)
- func (y *Yaml) Pos() (int, int)
- func (y *Yaml) String() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Yaml ¶
type Yaml struct {
// contains filtered or unexported fields
}
func (*Yaml) Get ¶
Get returns a pointer to a new `Yaml` object for `key` in its `map` representation
Example:
y.Get("xx").Get("yy").Int()
y.Get("notPresent").IsFound()
func (*Yaml) GetIndex ¶
GetIndex returns a pointer to a new `Yaml` object. for `index` in its `array` representation
Example:
y.Get("xx").GetIndex(1).String()
Click to show internal directories.
Click to hide internal directories.