Documentation ¶
Index ¶
- Variables
- func Header(messages []string, color string)
- func LimitMessageLength(message string, slice int) (string, string)
- func Log(message string, prefix string)
- func LogColor(message string, color string)
- func LogException(err error, info string)
- func LogInfo(message string, info string, color string)
- func LogInfoSplit(message string, slice int, info string, color string)
- func LogKeyboardInterrupt()
- func LogReplace(message string, color string)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Colors = map[string]string{
"B1": "\033[30;1m", "B2": "\033[30;2m",
"R1": "\033[31;1m", "R2": "\033[31;2m",
"G1": "\033[32;1m", "G2": "\033[32;2m",
"Y1": "\033[33;1m", "Y2": "\033[33;2m",
"B3": "\033[34;1m", "B4": "\033[34;2m",
"M1": "\033[35;1m", "M2": "\033[35;2m",
"C1": "\033[36;1m", "C2": "\033[36;2m",
"W1": "\033[37;1m", "W2": "\033[37;2m",
"CC": "\033[0m",
"BG_BLACK": "\033[0;40m",
"BG_RED": "\033[0;41m",
"BG_GREEN": "\033[0;42m",
"BG_YELLOW": "\033[0;43m",
"BG_BLUE": "\033[0;44m",
"BG_MAGENTA": "\033[0;45m",
"BG_CYAN": "\033[0;46m",
"BG_WHITE": "\033[0;47m",
}
)
Functions ¶
func LogException ¶
func LogKeyboardInterrupt ¶
func LogKeyboardInterrupt()
func LogReplace ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.