Documentation
¶
Index ¶
Constants ¶
View Source
const ( TokenKey = 1 TokenIndex = 2 )
Token types.
Variables ¶
This section is empty.
Functions ¶
func Exist ¶
func Exist(key string, yaml *simpleyaml.Yaml) (bool, error)
Exist returns true if the key exists.
func Get ¶
func Get(key string, yaml *simpleyaml.Yaml) (string, error)
Get returns the value from a key, if it exists.
The value of the key is determined by its content:
hello - the value is a string 12 - the value is a number 1.2 - the value is a float true|false - the value is a boolean nil - the value is nil, not found or its type could not be parsed {...} - the value is an object [...] - the value is an array
Types ¶
Click to show internal directories.
Click to hide internal directories.