Versions in this module Expand all Collapse all v1 v1.0.0 May 3, 2024 Changes in this version + func AppendBackgroundEnd(dst []byte) []byte + func AppendBackgroundStart(dst []byte, c wcolor.Color) []byte + func AppendBoldEnd(dst []byte) []byte + func AppendBoldStart(dst []byte) []byte + func AppendColorEnd(dst []byte) []byte + func AppendColorStart(dst []byte, c wcolor.Color) []byte + func AppendDarkenEnd(dst []byte) []byte + func AppendDarkenStart(dst []byte) []byte + func AppendItalicEnd(dst []byte) []byte + func AppendItalicStart(dst []byte) []byte + func AppendLightenEnd(dst []byte) []byte + func AppendLightenStart(dst []byte) []byte + func AppendStrikethroughEnd(dst []byte) []byte + func AppendStrikethroughStart(dst []byte) []byte + func AppendStyleEnd(dst []byte, s Style) []byte + func AppendStyleStart(dst []byte, s Style) []byte + func AppendUnderlineEnd(dst []byte) []byte + func AppendUnderlineStart(dst []byte) []byte + func CanApplyStyle(writer io.Writer) bool + type Style struct + Background *wcolor.Color + Bold bool + Color *wcolor.Color + Darken bool + Italic bool + Lighten bool + Strikethrough bool + Underline bool + func (s Style) ApplyTo(str string, applyStyle bool) StyledString + func (s Style) End(applyStyle bool) string + func (s Style) Start(applyStyle bool) string + type StyledString struct + func ApplyTo(str string, applyStyle bool) StyledString + func (s StyledString) Background(c wcolor.Color) StyledString + func (s StyledString) Bold() StyledString + func (s StyledString) Color(c wcolor.Color) StyledString + func (s StyledString) Darken() StyledString + func (s StyledString) Italic() StyledString + func (s StyledString) Lighten() StyledString + func (s StyledString) Strikethrough() StyledString + func (s StyledString) String() string + func (s StyledString) Underline() StyledString