Documentation
¶
Index ¶
- Constants
- func Error(a ...interface{})
- func Errorf(format string, a ...interface{})
- func Errorln(a ...interface{})
- func Info(a ...interface{})
- func Infof(format string, a ...interface{})
- func Infoln(a ...interface{})
- func Print(color string, a ...interface{})
- func Printf(color string, format string, a ...interface{})
- func Println(color string, a ...interface{})
- func SetOutput(w io.Writer)
- func Success(a ...interface{})
- func Successf(format string, a ...interface{})
- func Successln(a ...interface{})
- func Warning(a ...interface{})
- func Warningf(format string, a ...interface{})
- func Warningln(a ...interface{})
Constants ¶
View Source
const ( Reset = "\033[0m" Bold = "\033[1m" Red = "\033[31m" Green = "\033[32m" Yellow = "\033[33m" Blue = "\033[34m" Magenta = "\033[35m" Cyan = "\033[36m" White = "\033[37m" BoldRed = Bold + Red BoldGreen = Bold + Green BoldYellow = Bold + Yellow BoldBlue = Bold + Blue )
Colors for terminal output
Variables ¶
This section is empty.
Functions ¶
func Errorf ¶
func Errorf(format string, a ...interface{})
Errorf prints formatted error message in red
func Print ¶
func Print(color string, a ...interface{})
Print prints the arguments with the given color
func Println ¶
func Println(color string, a ...interface{})
Println prints the arguments with the given color and adds a newline
func Successf ¶
func Successf(format string, a ...interface{})
Successf prints formatted success message in green
func Successln ¶
func Successln(a ...interface{})
Successln prints success message in green with a newline
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.