Documentation ¶
Index ¶
- Variables
- func ArgsToFlagsMap(args []string) map[string]string
- func FileExists(path string) bool
- func PrettyPrintJson(m map[string]interface{})
- func PrintError(message string, args ...interface{})
- func PrintInfo(message string, args ...interface{})
- func PrintResponse(message string, args ...interface{})
- func PrintSuccess(message string, args ...interface{})
- func ReadFile(path string) (string, error)
- func WriteFile(path string, data interface{}, encoder func(interface{}) ([]byte, error)) error
Constants ¶
This section is empty.
Variables ¶
View Source
var JsonEncoder = func(input interface{}) ([]byte, error) { return json.Marshal(input) }
Functions ¶
func ArgsToFlagsMap ¶
func FileExists ¶
func PrettyPrintJson ¶
func PrettyPrintJson(m map[string]interface{})
func PrintError ¶
func PrintError(message string, args ...interface{})
func PrintResponse ¶
func PrintResponse(message string, args ...interface{})
func PrintSuccess ¶
func PrintSuccess(message string, args ...interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.