Documentation
¶
Overview ¶
Package brush provides convenience types to use Brush types as plain strings.
You can use a brush by doing :
str := "Hello Blue World" blueStr := brush.Blue(str)
...or simply :
blueStr := brush.Blue("I'm Blue")
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Black ¶
type Black string
Black gives black text on a white background. Use it like this:
brush.Black("I'm color Black")
type Blue ¶
type Blue string
Blue gives blue text on a black background. Use it like this:
brush.Blue("I'm color Blue")
type Cyan ¶
type Cyan string
Cyan gives cyan text on a black background. Use it like this:
brush.Cyan("I'm color Cyan")
type DarkBlue ¶
type DarkBlue string
DarkBlue gives dark blue text on a black background. Use it like this:
brush.DarkBlue("I'm color DarkBlue")
type DarkCyan ¶
type DarkCyan string
DarkCyan gives dark cyan text on a black background. Use it like this:
brush.DarkCyan("I'm color DarkCyan")
type DarkGray ¶
type DarkGray string
DarkGray gives dark gray text on a black background. Use it like this:
brush.DarkGray("I'm color DarkGray")
type DarkGreen ¶
type DarkGreen string
DarkGreen gives dark green text on a black background. Use it like this:
brush.DarkGreen("I'm color DarkGreen")
type DarkPurple ¶
type DarkPurple string
DarkPurple gives dark purple text on a black background. Use it like this:
brush.DarkPurple("I'm color DarkPurple")
func (DarkPurple) String ¶
func (d DarkPurple) String() string
type DarkRed ¶
type DarkRed string
DarkRed gives dark red text on a black background. Use it like this:
brush.DarkRed("I'm color DarkRed")
type DarkYellow ¶
type DarkYellow string
DarkYellow gives brown text on a black background. Use it like this:
brush.DarkYellow("I'm color DarkYellow")
func (DarkYellow) String ¶
func (d DarkYellow) String() string
type Green ¶
type Green string
Green gives green text on a black background. Use it like this:
brush.Green("I'm color Green")
type LightGray ¶
type LightGray string
LightGray gives light gray text on a black background. Use it like this:
brush.LightGray("I'm color LightGray")
type Purple ¶
type Purple string
Purple gives purple text on a black background. Use it like this:
brush.Purple("I'm color Purple")
type Red ¶
type Red string
Red gives red text on a black background. Use it like this:
brush.Red("I'm color Red")