Versions in this module Expand all Collapse all v4 v4.0.0 Oct 8, 2022 Changes in this version + const HyperlinkIDKey + var DefaultColorizer = New(WithColors(true), WithHyperlinks(true)) + func HyperlinkEscape(s string) string + func HyperlinkTarget(arg interface{}) (target string) + func HyperlinkUnescape(s string) (raw string, err error) + func IsValidHyperlinkParam(param string) (valid bool) + func IsValidHyperlinkTarget(target string) (valid bool) + func Sprintf(format interface{}, args ...interface{}) string + type Aurora struct + func New(opts ...Option) (a *Aurora) + func (a *Aurora) BgBlack(arg interface{}) Value + func (a *Aurora) BgBlue(arg interface{}) Value + func (a *Aurora) BgBrightBlack(arg interface{}) Value + func (a *Aurora) BgBrightBlue(arg interface{}) Value + func (a *Aurora) BgBrightCyan(arg interface{}) Value + func (a *Aurora) BgBrightGreen(arg interface{}) Value + func (a *Aurora) BgBrightMagenta(arg interface{}) Value + func (a *Aurora) BgBrightRed(arg interface{}) Value + func (a *Aurora) BgBrightWhite(arg interface{}) Value + func (a *Aurora) BgBrightYellow(arg interface{}) Value + func (a *Aurora) BgCyan(arg interface{}) Value + func (a *Aurora) BgGray(n GrayIndex, arg interface{}) Value + func (a *Aurora) BgGreen(arg interface{}) Value + func (a *Aurora) BgIndex(n ColorIndex, arg interface{}) Value + func (a *Aurora) BgMagenta(arg interface{}) Value + func (a *Aurora) BgRed(arg interface{}) Value + func (a *Aurora) BgWhite(arg interface{}) Value + func (a *Aurora) BgYellow(arg interface{}) Value + func (a *Aurora) Black(arg interface{}) Value + func (a *Aurora) Blink(arg interface{}) Value + func (a *Aurora) Blue(arg interface{}) Value + func (a *Aurora) Bold(arg interface{}) Value + func (a *Aurora) BrightBlack(arg interface{}) Value + func (a *Aurora) BrightBlue(arg interface{}) Value + func (a *Aurora) BrightCyan(arg interface{}) Value + func (a *Aurora) BrightGreen(arg interface{}) Value + func (a *Aurora) BrightMagenta(arg interface{}) Value + func (a *Aurora) BrightRed(arg interface{}) Value + func (a *Aurora) BrightWhite(arg interface{}) Value + func (a *Aurora) BrightYellow(arg interface{}) Value + func (a *Aurora) Clear(arg interface{}) Value + func (a *Aurora) Colorize(arg interface{}, color Color) Value + func (a *Aurora) Conceal(arg interface{}) Value + func (a *Aurora) Config() Config + func (a *Aurora) CrossedOut(arg interface{}) Value + func (a *Aurora) Cyan(arg interface{}) Value + func (a *Aurora) DoublyUnderline(arg interface{}) Value + func (a *Aurora) Encircled(arg interface{}) Value + func (a *Aurora) Faint(arg interface{}) Value + func (a *Aurora) Fraktur(arg interface{}) Value + func (a *Aurora) Framed(arg interface{}) Value + func (a *Aurora) Gray(n GrayIndex, arg interface{}) Value + func (a *Aurora) Green(arg interface{}) Value + func (a *Aurora) Hidden(arg interface{}) Value + func (a *Aurora) Hyperlink(arg interface{}, target string, params ...HyperlinkParam) Value + func (a *Aurora) HyperlinkParams(arg interface{}) (params []HyperlinkParam) + func (a *Aurora) HyperlinkTarget(arg interface{}) (target string) + func (a *Aurora) Index(n ColorIndex, arg interface{}) Value + func (a *Aurora) Inverse(arg interface{}) Value + func (a *Aurora) Italic(arg interface{}) Value + func (a *Aurora) Magenta(arg interface{}) Value + func (a *Aurora) Overlined(arg interface{}) Value + func (a *Aurora) RapidBlink(arg interface{}) Value + func (a *Aurora) Red(arg interface{}) Value + func (a *Aurora) Reset(arg interface{}) Value + func (a *Aurora) Reverse(arg interface{}) Value + func (a *Aurora) SlowBlink(arg interface{}) Value + func (a *Aurora) Sprintf(format interface{}, args ...interface{}) string + func (a *Aurora) StrikeThrough(arg interface{}) Value + func (a *Aurora) Underline(arg interface{}) Value + func (a *Aurora) White(arg interface{}) Value + func (a *Aurora) Yellow(arg interface{}) Value + type Color uint + const BlackBg + const BlackFg + const BlinkFm + const BlueBg + const BlueFg + const BoldFm + const BrightBg + const BrightFg + const ConcealFm + const CrossedOutFm + const CyanBg + const CyanFg + const DoublyUnderlineFm + const EncircledFm + const FaintFm + const FrakturFm + const FramedFm + const GreenBg + const GreenFg + const HiddenFm + const InverseFm + const ItalicFm + const MagentaBg + const MagentaFg + const OverlinedFm + const RapidBlinkFm + const RedBg + const RedFg + const ReverseFm + const SlowBlinkFm + const StrikeThroughFm + const UnderlineFm + const WhiteBg + const WhiteFg + const YellowBg + const YellowFg + func (c Color) BgBlack() Color + func (c Color) BgBlue() Color + func (c Color) BgBrightBlack() Color + func (c Color) BgBrightBlue() Color + func (c Color) BgBrightCyan() Color + func (c Color) BgBrightGreen() Color + func (c Color) BgBrightMagenta() Color + func (c Color) BgBrightRed() Color + func (c Color) BgBrightWhite() Color + func (c Color) BgBrightYellow() Color + func (c Color) BgCyan() Color + func (c Color) BgGray(n GrayIndex) Color + func (c Color) BgGreen() Color + func (c Color) BgIndex(n ColorIndex) Color + func (c Color) BgMagenta() Color + func (c Color) BgRed() Color + func (c Color) BgWhite() Color + func (c Color) BgYellow() Color + func (c Color) Black() Color + func (c Color) Blink() Color + func (c Color) Blue() Color + func (c Color) Bold() Color + func (c Color) BrightBlack() Color + func (c Color) BrightBlue() Color + func (c Color) BrightCyan() Color + func (c Color) BrightGreen() Color + func (c Color) BrightMagenta() Color + func (c Color) BrightRed() Color + func (c Color) BrightWhite() Color + func (c Color) BrightYellow() Color + func (c Color) Conceal() Color + func (c Color) CrossedOut() Color + func (c Color) Cyan() Color + func (c Color) DoublyUnderline() Color + func (c Color) Encircled() Color + func (c Color) Faint() Color + func (c Color) Fraktur() Color + func (c Color) Framed() Color + func (c Color) Gray(n GrayIndex) Color + func (c Color) Green() Color + func (c Color) Hidden() Color + func (c Color) Index(ci ColorIndex) Color + func (c Color) Inverse() Color + func (c Color) Italic() Color + func (c Color) Magenta() Color + func (c Color) Nos(zero bool) string + func (c Color) Overlined() Color + func (c Color) RapidBlink() Color + func (c Color) Red() Color + func (c Color) Reset() Color + func (c Color) Reverse() Color + func (c Color) SlowBlink() Color + func (c Color) StrikeThrough() Color + func (c Color) Underline() Color + func (c Color) White() Color + func (c Color) Yellow() Color + type ColorIndex uint8 + type Colored interface + Color func() Color + type Config struct + Colors bool + Hyperlinks bool + func NewConfig() (conf Config) + func (c *Config) AddFlags(fset *flag.FlagSet, prefix string) + func (c *Config) Apply(opts ...Option) + func (c *Config) Options() (opts []Option) + type GrayIndex uint8 + type HyperlinkParam struct + Key string + Value string + func HyperlinkID(id string) HyperlinkParam + func HyperlinkParams(arg interface{}) (params []HyperlinkParam) + func (hp HyperlinkParam) String() string + type Option func(*Config) + func WithColors(t bool) Option + func WithHyperlinks(t bool) Option + type Value struct + func BgBlack(arg interface{}) Value + func BgBlue(arg interface{}) Value + func BgBrightBlack(arg interface{}) Value + func BgBrightBlue(arg interface{}) Value + func BgBrightCyan(arg interface{}) Value + func BgBrightGreen(arg interface{}) Value + func BgBrightMagenta(arg interface{}) Value + func BgBrightRed(arg interface{}) Value + func BgBrightWhite(arg interface{}) Value + func BgBrightYellow(arg interface{}) Value + func BgCyan(arg interface{}) Value + func BgGray(n GrayIndex, arg interface{}) Value + func BgGreen(arg interface{}) Value + func BgIndex(n ColorIndex, arg interface{}) Value + func BgMagenta(arg interface{}) Value + func BgRed(arg interface{}) Value + func BgWhite(arg interface{}) Value + func BgYellow(arg interface{}) Value + func Black(arg interface{}) Value + func Blink(arg interface{}) Value + func Blue(arg interface{}) Value + func Bold(arg interface{}) Value + func BrightBlack(arg interface{}) Value + func BrightBlue(arg interface{}) Value + func BrightCyan(arg interface{}) Value + func BrightGreen(arg interface{}) Value + func BrightMagenta(arg interface{}) Value + func BrightRed(arg interface{}) Value + func BrightWhite(arg interface{}) Value + func BrightYellow(arg interface{}) Value + func Clear(arg interface{}) Value + func Colorize(arg interface{}, color Color) Value + func Conceal(arg interface{}) Value + func CrossedOut(arg interface{}) Value + func Cyan(arg interface{}) Value + func DoublyUnderline(arg interface{}) Value + func Encircled(arg interface{}) Value + func Faint(arg interface{}) Value + func Fraktur(arg interface{}) Value + func Framed(arg interface{}) Value + func Gray(n GrayIndex, arg interface{}) Value + func Green(arg interface{}) Value + func Hidden(arg interface{}) Value + func Hyperlink(arg interface{}, target string, params ...HyperlinkParam) Value + func Index(n ColorIndex, arg interface{}) Value + func Inverse(arg interface{}) Value + func Italic(arg interface{}) Value + func Magenta(arg interface{}) Value + func Overlined(arg interface{}) Value + func RapidBlink(arg interface{}) Value + func Red(arg interface{}) Value + func Reset(arg interface{}) Value + func Reverse(arg interface{}) Value + func SlowBlink(arg interface{}) Value + func StrikeThrough(arg interface{}) Value + func Underline(arg interface{}) Value + func White(arg interface{}) Value + func Yellow(arg interface{}) Value + func (v Value) BgBlack() Value + func (v Value) BgBlue() Value + func (v Value) BgBrightBlack() Value + func (v Value) BgBrightBlue() Value + func (v Value) BgBrightCyan() Value + func (v Value) BgBrightGreen() Value + func (v Value) BgBrightMagenta() Value + func (v Value) BgBrightRed() Value + func (v Value) BgBrightWhite() Value + func (v Value) BgBrightYellow() Value + func (v Value) BgCyan() Value + func (v Value) BgGray(n GrayIndex) Value + func (v Value) BgGreen() Value + func (v Value) BgIndex(n ColorIndex) Value + func (v Value) BgMagenta() Value + func (v Value) BgRed() Value + func (v Value) BgWhite() Value + func (v Value) BgYellow() Value + func (v Value) Black() Value + func (v Value) Blink() Value + func (v Value) Blue() Value + func (v Value) Bold() Value + func (v Value) BrightBlack() Value + func (v Value) BrightBlue() Value + func (v Value) BrightCyan() Value + func (v Value) BrightGreen() Value + func (v Value) BrightMagenta() Value + func (v Value) BrightRed() Value + func (v Value) BrightWhite() Value + func (v Value) BrightYellow() Value + func (v Value) Clear() Value + func (v Value) Color() Color + func (v Value) Colorize(color Color) Value + func (v Value) Conceal() Value + func (v Value) CrossedOut() Value + func (v Value) Cyan() Value + func (v Value) DoublyUnderline() Value + func (v Value) Encircled() Value + func (v Value) Faint() Value + func (v Value) Format(s fmt.State, verb rune) + func (v Value) Fraktur() Value + func (v Value) Framed() Value + func (v Value) Gray(n GrayIndex) Value + func (v Value) Green() Value + func (v Value) Hidden() Value + func (v Value) Hyperlink(target string, params ...HyperlinkParam) Value + func (v Value) HyperlinkParams() (params []HyperlinkParam) + func (v Value) HyperlinkTarget() (target string) + func (v Value) Index(n ColorIndex) Value + func (v Value) Inverse() Value + func (v Value) Italic() Value + func (v Value) Magenta() Value + func (v Value) Overlined() Value + func (v Value) RapidBlink() Value + func (v Value) Red() Value + func (v Value) Reset() Value + func (v Value) Reverse() Value + func (v Value) SlowBlink() Value + func (v Value) StrikeThrough() Value + func (v Value) String() string + func (v Value) Underline() Value + func (v Value) Value() interface{} + func (v Value) White() Value + func (v Value) Yellow() Value Other modules containing this package github.com/logrusorgru/aurora github.com/logrusorgru/aurora/v3