Documentation ¶
Index ¶
- func CreateFileWithDirs(path string) (*os.File, error)
- func JsonBytesToYamlBytes(b []byte) ([]byte, error)
- func MapToUrlValues(data map[string]string) url.Values
- func MarshalViaJSONToYAML(v interface{}) ([]byte, error)
- func PrintCSV(obj interface{}) error
- func PrintInfo()
- func PrintJSON(obj interface{}) error
- func PrintYAML(obj interface{}) error
- func ReadBytes(body io.ReadCloser) ([]byte, error)
- func ReadJSON(body io.ReadCloser, v interface{}) error
- func SetLogLevel(loglevelString string)
- func YamlBytesToJSONBytes(b []byte) ([]byte, error)
- func YamlToMap(y []byte) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonBytesToYamlBytes ¶
func MarshalViaJSONToYAML ¶
func ReadJSON ¶
func ReadJSON(body io.ReadCloser, v interface{}) error
func SetLogLevel ¶
func SetLogLevel(loglevelString string)
SetLogLevel sets the log level for logrus by string; possible values are debug, error, fatal, panic, info, trace
func YamlBytesToJSONBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.