Documentation ¶
Index ¶
- type Yaml
- func (y *Yaml) Array() ([]interface{}, error)
- func (y *Yaml) Bool() (bool, error)
- func (y *Yaml) Float() (float64, error)
- func (y *Yaml) Get(key interface{}) *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 ...interface{}) *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[interface{}]interface{}, error)
- 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()
func (*Yaml) GetArraySize ¶
GetArraySize return the size of array
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()
func (*Yaml) GetMapKeys ¶
GetMapKeys Get all the keys of the map
func (*Yaml) GetPath ¶
GetPath searches for the item as specified by the branch
Example:
y.GetPath("bb", "cc").Int()
Click to show internal directories.
Click to hide internal directories.