Documentation
¶
Index ¶
- type DecoratedString
- func InBlack(s string) DecoratedString
- func InBlue(s string) DecoratedString
- func InBold(s string) DecoratedString
- func InCyan(s string) DecoratedString
- func InGreen(s string) DecoratedString
- func InMagenta(s string) DecoratedString
- func InRed(s string) DecoratedString
- func InWhite(s string) DecoratedString
- func InYellow(s string) DecoratedString
- func Inverted(s string) DecoratedString
- func OnBlack(s string) DecoratedString
- func OnBlue(s string) DecoratedString
- func OnCyan(s string) DecoratedString
- func OnGreen(s string) DecoratedString
- func OnMagenta(s string) DecoratedString
- func OnRed(s string) DecoratedString
- func OnWhite(s string) DecoratedString
- func OnYellow(s string) DecoratedString
- func Underlined(s string) DecoratedString
- func (ds DecoratedString) InBlack() DecoratedString
- func (ds DecoratedString) InBlue() DecoratedString
- func (ds DecoratedString) InBold() DecoratedString
- func (ds DecoratedString) InCyan() DecoratedString
- func (ds DecoratedString) InGreen() DecoratedString
- func (ds DecoratedString) InMagenta() DecoratedString
- func (ds DecoratedString) InRed() DecoratedString
- func (ds DecoratedString) InWhite() DecoratedString
- func (ds DecoratedString) InYellow() DecoratedString
- func (ds DecoratedString) Inverted() DecoratedString
- func (ds DecoratedString) OnBlack() DecoratedString
- func (ds DecoratedString) OnBlue() DecoratedString
- func (ds DecoratedString) OnCyan() DecoratedString
- func (ds DecoratedString) OnGreen() DecoratedString
- func (ds DecoratedString) OnMagenta() DecoratedString
- func (ds DecoratedString) OnRed() DecoratedString
- func (ds DecoratedString) OnWhite() DecoratedString
- func (ds DecoratedString) OnYellow() DecoratedString
- func (ds DecoratedString) Underlined() DecoratedString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecoratedString ¶
type DecoratedString string
DecoratedString is a string with methods for coloring
func InBlack ¶
func InBlack(s string) DecoratedString
InBlack returns the input string with black text
func InGreen ¶
func InGreen(s string) DecoratedString
InGreen returns the input string with green text
func InMagenta ¶
func InMagenta(s string) DecoratedString
InMagenta returns the input string with magenta text
func InWhite ¶
func InWhite(s string) DecoratedString
InWhite returns the input string with white text
func InYellow ¶
func InYellow(s string) DecoratedString
InYellow returns the input string with yellow text
func OnBlack ¶
func OnBlack(s string) DecoratedString
OnBlack returns the input string with a black background
func OnBlue ¶
func OnBlue(s string) DecoratedString
OnBlue returns the input string with a blue background
func OnCyan ¶
func OnCyan(s string) DecoratedString
OnCyan returns the input string with a cyan background
func OnGreen ¶
func OnGreen(s string) DecoratedString
OnGreen returns the input string with a green background
func OnMagenta ¶
func OnMagenta(s string) DecoratedString
OnMagenta returns the input string with a magenta background
func OnRed ¶
func OnRed(s string) DecoratedString
OnRed returns the input string with a red background
func OnWhite ¶
func OnWhite(s string) DecoratedString
OnWhite returns the input string with a white background
func OnYellow ¶
func OnYellow(s string) DecoratedString
OnYellow returns the input string with a yellow background
func Underlined ¶
func Underlined(s string) DecoratedString
Underlined returns the input string underlined
func (DecoratedString) InBlack ¶
func (ds DecoratedString) InBlack() DecoratedString
InBlack returns this DecoratedString with black text
func (DecoratedString) InBlue ¶
func (ds DecoratedString) InBlue() DecoratedString
InBlue returns this DecoratedString with blue text
func (DecoratedString) InBold ¶
func (ds DecoratedString) InBold() DecoratedString
InBold returns this DecoratedString in bold
func (DecoratedString) InCyan ¶
func (ds DecoratedString) InCyan() DecoratedString
InCyan returns this DecoratedString with cyan text
func (DecoratedString) InGreen ¶
func (ds DecoratedString) InGreen() DecoratedString
InGreen returns this DecoratedString with green text
func (DecoratedString) InMagenta ¶
func (ds DecoratedString) InMagenta() DecoratedString
InMagenta returns this DecoratedString with magenta text
func (DecoratedString) InRed ¶
func (ds DecoratedString) InRed() DecoratedString
InRed returns this DecoratedString with red text
func (DecoratedString) InWhite ¶
func (ds DecoratedString) InWhite() DecoratedString
InWhite returns this DecoratedString with white text
func (DecoratedString) InYellow ¶
func (ds DecoratedString) InYellow() DecoratedString
InYellow returns this DecoratedString with yellow text
func (DecoratedString) Inverted ¶
func (ds DecoratedString) Inverted() DecoratedString
func (DecoratedString) OnBlack ¶
func (ds DecoratedString) OnBlack() DecoratedString
OnBlack returns this decorated string with a black background
func (DecoratedString) OnBlue ¶
func (ds DecoratedString) OnBlue() DecoratedString
OnBlue returns this DecoratedString with a blue background
func (DecoratedString) OnCyan ¶
func (ds DecoratedString) OnCyan() DecoratedString
OnCyan returns this DecoratedString with a cyan background
func (DecoratedString) OnGreen ¶
func (ds DecoratedString) OnGreen() DecoratedString
OnGreen returns this DecoratedString with a green background
func (DecoratedString) OnMagenta ¶
func (ds DecoratedString) OnMagenta() DecoratedString
OnMagenta returns this DecoratedString with a magenta background
func (DecoratedString) OnRed ¶
func (ds DecoratedString) OnRed() DecoratedString
OnRed returns this DecoratedString with a red background
func (DecoratedString) OnWhite ¶
func (ds DecoratedString) OnWhite() DecoratedString
OnWhite returns this DecoratedString with a white background
func (DecoratedString) OnYellow ¶
func (ds DecoratedString) OnYellow() DecoratedString
OnYellow returns this DecoratedString with a yellow background
func (DecoratedString) Underlined ¶
func (ds DecoratedString) Underlined() DecoratedString
Underlined returns this DecoratedString underlined