Documentation
¶
Index ¶
- func InterfaceToBytes(key interface{}) ([]byte, error)
- func LoadJSONFile(f string, object interface{}) error
- func LoadYAMLFile(file string, object interface{}) error
- func ObjectToJSONByte(object interface{}) ([]byte, error)
- func ObjectToJSONString(object interface{}) (string, error)
- func ObjectToJSONStringPretty(object interface{}) (string, error)
- func ObjectToYamlString(object interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterfaceToBytes ¶
InterfaceToBytes convert a interface{} to a []byte
func LoadJSONFile ¶
LoadJSONFile method dumps data from the file f to object
func LoadYAMLFile ¶
func ObjectToJSONByte ¶
ObjectToJSONByte converts any object to a json byte
func ObjectToJSONString ¶
ObjectToJSONString converts any object to a json string
func ObjectToJSONStringPretty ¶
ObjectToJSONStringPretty converts any object to a json string with a pretty format
func ObjectToYamlString ¶
ObjectToYamlString converts any object to a yaml string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.