Documentation ¶
Index ¶
- Variables
- func Debug(format string, a ...interface{})
- func Error(format string, a ...interface{})
- func ErrorOccured() bool
- func Fatal(format string, a ...interface{})
- func Log(format string, a ...interface{})
- func Success(format string, a ...interface{})
- func Warning(format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var IndentationLevel = 0
IndentationLevel controls the amount of indentation of log messages.
View Source
var Spinner = spinner.New(spinner.CharSets[14], 150*time.Millisecond)
Spinner is used to signal long-running actions.
View Source
var Verbose bool
Verbose controls whether debug messages are being printed.
Functions ¶
func Debug ¶
func Debug(format string, a ...interface{})
Debug prints an indented and formatted debug message to os.Stdout if verbose output is selected.
func Error ¶
func Error(format string, a ...interface{})
Error prints an indented and formatted error message to os.Stdout.
func Fatal ¶
func Fatal(format string, a ...interface{})
Fatal prints an indented and formatted error message to os.Stdout and terminates the program.
func Log ¶
func Log(format string, a ...interface{})
Log prints an indented and formatted message to os.Stdout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.