Documentation
¶
Index ¶
- Variables
- func CheckIfError(err error)
- func ColorError(format string, args ...interface{})
- func ColorImportant(format string, args ...interface{})
- func ColorInfo(format string, args ...interface{})
- func ColorWarning(format string, args ...interface{})
- func ExitIfError(err error)
- func RunInDir(dir string, cmd *exec.Cmd)
- func ShowIfError(err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ANSI_CYAN = "\x1b[36;1m" ANSI_RESET = "\x1b[0m" ANSI_DEFAULT = "\x1b[39;1m" ANSI_BLUE = "\x1b[34;1m" ANSI_BLACK = "\x1b[30;1m" ANSI_RED = "\x1b[31;1m" ANSI_GREEN = "\x1b[32;1m" ANSI_YELLOW = "\x1b[33;1m" ANSI_WHITE = "\x1b[37;1m" ANSI_MAGENTA = "\x1b[35;1m" )
Functions ¶
func CheckIfError ¶
func CheckIfError(err error)
func ColorError ¶ added in v1.0.1
func ColorError(format string, args ...interface{})
func ColorImportant ¶ added in v1.0.1
func ColorImportant(format string, args ...interface{})
func ColorInfo ¶
func ColorInfo(format string, args ...interface{})
ColorInfo should be used to display messages
func ColorWarning ¶
func ColorWarning(format string, args ...interface{})
Warning should be used to display a warning
func ExitIfError ¶
func ExitIfError(err error)
ExitIfError should be used to naively panics if an error is not nil.
func ShowIfError ¶
func ShowIfError(err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.