Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Black = Style{FgBlack} Red = Style{FgRed} Green = Style{FgGreen} Yellow = Style{FgYellow} Blue = Style{FgBlue} Magenta = Style{FgMagenta} Cyan = Style{FgCyan} White = Style{FgWhite} )
ANSI Colors
Functions ¶
This section is empty.
Types ¶
type Style ¶
type Style []ANSICode
Style allows multiple ANSI codes.
func Bg256Color ¶ added in v0.2.0
Bg256Color creates a style for a 256-color background color.
func BgTrueColor ¶ added in v0.2.0
BgTrueColor creates a style for a 24-bit background color.
func Fg256Color ¶ added in v0.2.0
Fg256Color creates a style for a 256-color foreground color.
func FgTrueColor ¶ added in v0.2.0
FgTrueColor creates a style for a 24-bit foreground color.
type UI ¶
type UI interface { // Output method independent of the verbosity level Printf(format string, a ...interface{}) // Leveled output methods GetLevel() Level SetLevel(l Level) Tracef(s Style, format string, a ...interface{}) Debugf(s Style, format string, a ...interface{}) Infof(s Style, format string, a ...interface{}) Warnf(s Style, format string, a ...interface{}) Errorf(s Style, format string, a ...interface{}) }
UI is the interface for interacting with users in command-line applications.
Click to show internal directories.
Click to hide internal directories.