color

package
v0.13.7 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Colorize

func Colorize(s string, c Paint) string

Colorize returns an ASCII colored string based on given color.

Types

type Paint

type Paint int

Paint describes a terminal color.

const (
	Black Paint = iota + 30
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	White
	DarkGray = 90

	Bold = 1
)

Defines basic ANSI colors.

Jump to

Keyboard shortcuts

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