Documentation ¶ Index ¶ Variables func Gray(text string) string func Green(text string) string func Init(level string, with ...string) func Orange(text string) string func Purple(text string) string func Red(text string) string Constants ¶ This section is empty. Variables ¶ View Source var ( // Debug level Debug *log.Logger // Info level Info *log.Logger // Warning level Warning *log.Logger // Error level Error *log.Logger // Output special level used for script output Output *log.Logger ) Functions ¶ func Gray ¶ added in v1.9.0 func Gray(text string) string Gray ANSI color applied to a string func Green ¶ added in v1.9.0 func Green(text string) string Green ANSI color applied to a string func Init ¶ func Init(level string, with ...string) Init logger level func Orange ¶ added in v1.9.0 func Orange(text string) string Orange ANSI color applied to a string func Purple ¶ added in v1.12.0 func Purple(text string) string Purple ANSI color applied to a string func Red ¶ added in v1.9.0 func Red(text string) string Red ANSI color applied to a string Types ¶ This section is empty. Source Files ¶ View all Source files color.go main.go Click to show internal directories. Click to hide internal directories.