brush

package
v0.0.0-...-28ad4cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2014 License: MIT Imports: 1 Imported by: 62

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")

func (Black) String

func (b Black) String() string

type Blue

type Blue string

Blue gives blue text on a black background. Use it like this:

brush.Blue("I'm color Blue")

func (Blue) String

func (b Blue) String() string

type Cyan

type Cyan string

Cyan gives cyan text on a black background. Use it like this:

brush.Cyan("I'm color Cyan")

func (Cyan) String

func (c Cyan) String() string

type DarkBlue

type DarkBlue string

DarkBlue gives dark blue text on a black background. Use it like this:

brush.DarkBlue("I'm color DarkBlue")

func (DarkBlue) String

func (d DarkBlue) String() string

type DarkCyan

type DarkCyan string

DarkCyan gives dark cyan text on a black background. Use it like this:

brush.DarkCyan("I'm color DarkCyan")

func (DarkCyan) String

func (d DarkCyan) String() string

type DarkGray

type DarkGray string

DarkGray gives dark gray text on a black background. Use it like this:

brush.DarkGray("I'm color DarkGray")

func (DarkGray) String

func (d DarkGray) String() string

type DarkGreen

type DarkGreen string

DarkGreen gives dark green text on a black background. Use it like this:

brush.DarkGreen("I'm color DarkGreen")

func (DarkGreen) String

func (d DarkGreen) String() string

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")

func (DarkRed) String

func (d DarkRed) String() string

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")

func (Green) String

func (g Green) String() string

type LightGray

type LightGray string

LightGray gives light gray text on a black background. Use it like this:

brush.LightGray("I'm color LightGray")

func (LightGray) String

func (l LightGray) String() string

type Purple

type Purple string

Purple gives purple text on a black background. Use it like this:

brush.Purple("I'm color Purple")

func (Purple) String

func (p Purple) String() string

type Red

type Red string

Red gives red text on a black background. Use it like this:

brush.Red("I'm color Red")

func (Red) String

func (r Red) String() string

type White

type White string

White gives white text on a dark gray background. Use it like this:

brush.White("I'm color White")

func (White) String

func (w White) String() string

type Yellow

type Yellow string

Yellow gives yellow text on a black background. Use it like this:

brush.Yellow("I'm color Yellow")

func (Yellow) String

func (y Yellow) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL