Documentation
¶
Index ¶
- Variables
- func EnableColor(fromCache bool) (result bool)
- type ColorFn
- func BgBlack() ColorFn
- func BgBlue() ColorFn
- func BgBlueBright() ColorFn
- func BgCyan() ColorFn
- func BgCyanBright() ColorFn
- func BgGray() ColorFn
- func BgGreen() ColorFn
- func BgGreenBright() ColorFn
- func BgMagenta() ColorFn
- func BgMagentaBright() ColorFn
- func BgRed() ColorFn
- func BgRedBright() ColorFn
- func BgWhite() ColorFn
- func BgWhiteBright() ColorFn
- func BgYellow() ColorFn
- func BgYellowBright() ColorFn
- func Black() ColorFn
- func Blue() ColorFn
- func BlueBright() ColorFn
- func Bold() ColorFn
- func Cyan() ColorFn
- func CyanBright() ColorFn
- func Dim() ColorFn
- func Gray() ColorFn
- func Green() ColorFn
- func GreenBright() ColorFn
- func Invisible() ColorFn
- func Italic() ColorFn
- func Magenta() ColorFn
- func MagentaBright() ColorFn
- func New(enable bool) ColorFn
- func Other(start string, end string) ColorFn
- func Red() ColorFn
- func RedBright() ColorFn
- func Reverse() ColorFn
- func StrikeThrough() ColorFn
- func Underline() ColorFn
- func White() ColorFn
- func WhiteBright() ColorFn
- func Yellow() ColorFn
- func YellowBright() ColorFn
- func (c ColorFn) BgBlack() ColorFn
- func (c ColorFn) BgBlue() ColorFn
- func (c ColorFn) BgBlueBright() ColorFn
- func (c ColorFn) BgCyan() ColorFn
- func (c ColorFn) BgCyanBright() ColorFn
- func (c ColorFn) BgGray() ColorFn
- func (c ColorFn) BgGreen() ColorFn
- func (c ColorFn) BgGreenBright() ColorFn
- func (c ColorFn) BgMagenta() ColorFn
- func (c ColorFn) BgMagentaBright() ColorFn
- func (c ColorFn) BgRed() ColorFn
- func (c ColorFn) BgRedBright() ColorFn
- func (c ColorFn) BgWhite() ColorFn
- func (c ColorFn) BgWhiteBright() ColorFn
- func (c ColorFn) BgYellow() ColorFn
- func (c ColorFn) BgYellowBright() ColorFn
- func (c ColorFn) Black() ColorFn
- func (c ColorFn) Blue() ColorFn
- func (c ColorFn) BlueBright() ColorFn
- func (c ColorFn) Bold() ColorFn
- func (c ColorFn) Cyan() ColorFn
- func (c ColorFn) CyanBright() ColorFn
- func (c ColorFn) Dim() ColorFn
- func (c ColorFn) Gray() ColorFn
- func (c ColorFn) Green() ColorFn
- func (c ColorFn) GreenBright() ColorFn
- func (c ColorFn) Invisible() ColorFn
- func (c ColorFn) Italic() ColorFn
- func (c ColorFn) Magenta() ColorFn
- func (c ColorFn) MagentaBright() ColorFn
- func (c ColorFn) Other(start string, end string) ColorFn
- func (c ColorFn) Red() ColorFn
- func (c ColorFn) RedBright() ColorFn
- func (c ColorFn) Reverse() ColorFn
- func (c ColorFn) StrikeThrough() ColorFn
- func (f ColorFn) String(s string) string
- func (c ColorFn) Underline() ColorFn
- func (c ColorFn) White() ColorFn
- func (c ColorFn) WhiteBright() ColorFn
- func (c ColorFn) Yellow() ColorFn
- func (c ColorFn) YellowBright() ColorFn
Constants ¶
This section is empty.
Variables ¶
View Source
var Std = New(EnableColor(false))
Functions ¶
func EnableColor ¶
EnableColor returns true if color is enabled
Types ¶
type ColorFn ¶
func BgBlueBright ¶ added in v0.3.0
func BgBlueBright() ColorFn
func BgCyanBright ¶ added in v0.3.0
func BgCyanBright() ColorFn
func BgGreenBright ¶ added in v0.3.0
func BgGreenBright() ColorFn
func BgMagentaBright ¶ added in v0.3.0
func BgMagentaBright() ColorFn
func BgRedBright ¶ added in v0.3.0
func BgRedBright() ColorFn
func BgWhiteBright ¶ added in v0.3.0
func BgWhiteBright() ColorFn
func BgYellowBright ¶ added in v0.3.0
func BgYellowBright() ColorFn
func BlueBright ¶ added in v0.3.0
func BlueBright() ColorFn
func CyanBright ¶ added in v0.3.0
func CyanBright() ColorFn
func GreenBright ¶ added in v0.3.0
func GreenBright() ColorFn
func MagentaBright ¶ added in v0.3.0
func MagentaBright() ColorFn
func StrikeThrough ¶ added in v0.3.0
func StrikeThrough() ColorFn
func WhiteBright ¶ added in v0.3.0
func WhiteBright() ColorFn
func YellowBright ¶ added in v0.3.0
func YellowBright() ColorFn
func (ColorFn) BgBlueBright ¶
func (ColorFn) BgCyanBright ¶
func (ColorFn) BgGreenBright ¶
func (ColorFn) BgMagentaBright ¶
func (ColorFn) BgRedBright ¶
func (ColorFn) BgWhiteBright ¶
func (ColorFn) BgYellowBright ¶
func (ColorFn) BlueBright ¶
func (ColorFn) CyanBright ¶
func (ColorFn) GreenBright ¶
func (ColorFn) MagentaBright ¶
func (ColorFn) Other ¶
See: https://en.wikipedia.org/wiki/ANSI_escape_code#CSI_codes
func (ColorFn) StrikeThrough ¶
func (ColorFn) WhiteBright ¶
func (ColorFn) YellowBright ¶
Click to show internal directories.
Click to hide internal directories.
