Documentation ¶
Index ¶
- func Convert(i interface{}) interface{}
- func ReadYamlFromFile(filePath string, yamlTarget interface{}) error
- func ToInterfaceMap(yamlData interface{}) (map[string]interface{}, error)
- func Unmarshal(data []byte, out interface{}) error
- func UnmarshalStrict(data []byte, out interface{}) error
- func UnmarshalStrictJSON(data []byte, out interface{}) error
- func UnmarshalString(data string, out interface{}) error
- func WriteYamlToFile(yamlData interface{}, filePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert(i interface{}) interface{}
Convert converts an map[interface{}] to map[string] type
func ReadYamlFromFile ¶
ReadYamlFromFile reads a yaml file
func ToInterfaceMap ¶
ToInterfaceMap converts to yaml and back to generate map[string]interface{}
func UnmarshalStrict ¶
func UnmarshalStrictJSON ¶
func UnmarshalString ¶
UnmarshalString decodes the given string into an object and returns a prettified string
func WriteYamlToFile ¶
WriteYamlToFile formats yamlData and writes it to a file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.