Documentation ¶
Index ¶
- Constants
- Variables
- func Blue(s string) string
- func Bold(s string) string
- func Debug(format string, args ...interface{})
- func Dim(s string) string
- func Error(format string, args ...interface{})
- func Fatal(format string, args ...interface{})
- func Green(s string) string
- func Important(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func Log(level int, format string, args ...interface{})
- func Raw(format string, args ...interface{})
- func Red(s string) string
- func Warning(format string, args ...interface{})
- func Wrap(s, effect string) string
- func Yellow(s string) string
- type Handler
Constants ¶
View Source
const ( BOLD = "\033[1m" DIM = "\033[2m" RED = "\033[31m" GREEN = "\033[32m" BLUE = "\033[34m" YELLOW = "\033[33m" FG_BLACK = "\033[30m" FG_WHITE = "\033[97m" BG_DGRAY = "\033[100m" BG_RED = "\033[41m" BG_GREEN = "\033[42m" BG_YELLOW = "\033[43m" BG_LBLUE = "\033[104m" RESET = "\033[0m" )
https://misc.flogisoft.com/bash/tip_colors_and_formatting
View Source
const ( DEBUG = iota INFO IMPORTANT WARNING ERROR FATAL )
Variables ¶
View Source
var ( WithColors = true Output = os.Stdout DateFormat = "2006-01-02 15:04:05" MinLevel = INFO )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.