colors

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ColorRed string = "\x1b[91m"
	ColorRed     string = "\x1b[31m"
	ColorCyan    string = "\x1b[36m"
	ColorGreen   string = "\x1b[32m"
	ColorYellow  string = "\x1b[33m"
	ColorDefault string = "\x1b[0m"
	ColorBold    string = "\x1b[1m"
	ColorGray    string = "\x1b[90m"
)

TODO: remove Color prefix from color constants

Variables

View Source
var ColorCodeLength = len(red) + len(defaultStyle)

Functions

func Bold

func Bold(output string) string

func Colorize added in v0.4.2

func Colorize(colorCode string, format string, args ...interface{}) string

func Cyan

func Cyan(output string) string

func Gray added in v0.4.2

func Gray(output string) string

func Green

func Green(output string) string

func NoColor

func NoColor(output string) string

func PurpleUnderline

func PurpleUnderline(output string) string

func Red

func Red(output string) string

func Yellow

func Yellow(output string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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