ansicolor

package
Version: v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ColorNone is default
	ColorNone = iota
	// Red colored text
	Red
	// Green colored text
	Green
	// Yellow colored text
	Yellow
	// Blue colored text
	Blue
	// Magenta colored text
	Magenta
	// Cyan colored text
	Cyan
	// White colored text
	White
	// Black colored text
	Black Color = -1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color int

Color of text

type ColorText

type ColorText struct {
	TextColor Color
	Text      string
}

ColorText holds a string and its color

func (*ColorText) String

func (r *ColorText) String() string

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL