colors

package
v0.0.0-...-098adc7 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2015 License: Apache-2.0 Imports: 3 Imported by: 9

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"
	ColorBlue    string = "\x1b[34m"
	ColorPurple  string = "\x1b[35m"
)

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

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

func Cyan

func Cyan(output string) string

func Gray

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