ansi

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Color = func() Colors {
	if os.Getenv("NO_COLOR") != "" {
		return Colors{}
	}
	return Colors{
		Reset:     "\033[0m",
		Bold:      "\033[1m",
		Dim:       "\033[37m",
		Underline: "\033[4m",

		White:  "\033[37m",
		Teal:   "\033[36m",
		Blue:   "\033[34m",
		Yellow: "\033[33m",
		Red:    "\033[31m",
		Green:  "\033[32m",
	}
}()

Color set

Functions

This section is empty.

Types

type Colors

type Colors struct {
	Reset     string
	Bold      string
	Dim       string
	Underline string

	White  string
	Teal   string
	Blue   string
	Yellow string
	Red    string
	Green  string
}

Jump to

Keyboard shortcuts

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