Versions in this module Expand all Collapse all v1 v1.0.0 Sep 8, 2019 Changes in this version + const AttrBgColor4BitsBlack + const AttrBgColor4BitsBlue + const AttrBgColor4BitsBrightBlack + const AttrBgColor4BitsBrightBlue + const AttrBgColor4BitsBrightCyan + const AttrBgColor4BitsBrightGreen + const AttrBgColor4BitsBrightMagenta + const AttrBgColor4BitsBrightRed + const AttrBgColor4BitsBrightWhite + const AttrBgColor4BitsBrightYellow + const AttrBgColor4BitsCyan + const AttrBgColor4BitsGreen + const AttrBgColor4BitsMagenta + const AttrBgColor4BitsRed + const AttrBgColor4BitsWhite + const AttrBgColor4BitsYellow + const AttrBlink + const AttrBold + const AttrFgColor4BitsBlack + const AttrFgColor4BitsBlue + const AttrFgColor4BitsBrightBlack + const AttrFgColor4BitsBrightBlue + const AttrFgColor4BitsBrightCyan + const AttrFgColor4BitsBrightGreen + const AttrFgColor4BitsBrightMagenta + const AttrFgColor4BitsBrightRed + const AttrFgColor4BitsBrightWhite + const AttrFgColor4BitsBrightYellow + const AttrFgColor4BitsCyan + const AttrFgColor4BitsGreen + const AttrFgColor4BitsMagenta + const AttrFgColor4BitsRed + const AttrFgColor4BitsWhite + const AttrFgColor4BitsYellow + const AttrItalic + const AttrOverline + const AttrStrikethrough + const AttrUnderline + func Format(str string, attrs ...Attr) string + type Attr interface + ANSI func() string + type BgColor24Bits struct + func AttrBgColor24Bits(red, green, blue int) *BgColor24Bits + func (c *BgColor24Bits) ANSI() string + type BgColor8Bits int + func AttrBgColor8Bits(bg8BitsColor int) BgColor8Bits + func (c BgColor8Bits) ANSI() string + type FgColor24Bits struct + func AttrFgColor24Bits(red, green, blue int) *FgColor24Bits + func (c *FgColor24Bits) ANSI() string + type FgColor8Bits int + func AttrFgColor8Bits(color int) FgColor8Bits + func (c FgColor8Bits) ANSI() string + type SimpleAttr int + func (s SimpleAttr) ANSI() string