Documentation ¶
Index ¶
- Constants
- func Delete(yml *simpleyaml.Yaml, path string) error
- func DeleteInFile(file string, path string) error
- func DeleteInMemory(file []byte, path string) ([]byte, error)
- func ExtractType(value *simpleyaml.Yaml) (interface{}, error)
- func Get(yml *simpleyaml.Yaml, path string) (interface{}, error)
- func GetAsSimpleYaml(yml *simpleyaml.Yaml, path string) (*simpleyaml.Yaml, error)
- func GetFromFile(file string, path string) (interface{}, error)
- func GetFromFileAsSimpleYaml(file string, path string) (*simpleyaml.Yaml, error)
- func GetInMemory(file []byte, path string) (interface{}, error)
- func GetPaths(file []byte) ([]string, error)
- func ReadYaml(yaml []byte) (*simpleyaml.Yaml, error)
- func ReadYamlFromFile(filename string) (*simpleyaml.Yaml, error)
- func Set(yml *simpleyaml.Yaml, path string, val interface{}) error
- func SetInFile(file string, path string, val interface{}) error
- func SetInMemory(file []byte, path string, val interface{}, asJson bool) ([]byte, error)
- func SetKey(yaml *simpleyaml.Yaml, path string, key string) error
- func SetKeyInFile(file string, path string, key string) error
- func SetValueForType(yaml *simpleyaml.Yaml, path string, value *simpleyaml.Yaml) error
- func Transfer(fromYaml *simpleyaml.Yaml, fromPath string, toYaml *simpleyaml.Yaml, ...) error
- func TransferToFile(from string, fromPath string, to string, toPath string) error
- func WriteYaml(yml *simpleyaml.Yaml, file string) error
Constants ¶
View Source
const ( ADDMAP = "GOML_ADD_MAP" ADDARRAY = "GOML_ADD_ARRAY" )
Variables ¶
This section is empty.
Functions ¶
func DeleteInFile ¶
func ExtractType ¶
func ExtractType(value *simpleyaml.Yaml) (interface{}, error)
func GetAsSimpleYaml ¶
func GetAsSimpleYaml(yml *simpleyaml.Yaml, path string) (*simpleyaml.Yaml, error)
func GetFromFile ¶
func GetFromFileAsSimpleYaml ¶
func GetFromFileAsSimpleYaml(file string, path string) (*simpleyaml.Yaml, error)
func GetInMemory ¶ added in v0.4.0
func ReadYamlFromFile ¶
func ReadYamlFromFile(filename string) (*simpleyaml.Yaml, error)
func SetInMemory ¶ added in v0.4.0
func SetValueForType ¶
func SetValueForType(yaml *simpleyaml.Yaml, path string, value *simpleyaml.Yaml) error
func Transfer ¶
func Transfer(fromYaml *simpleyaml.Yaml, fromPath string, toYaml *simpleyaml.Yaml, toPath string) error
func TransferToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.