color

package
v0.0.0-...-e4c3281 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const (
	Reset        = "\033[0m"
	Normal       = 0
	Bold         = 1
	Dim          = 2
	Underline    = 4
	Blink        = 5
	Reverse      = 7
	Hidden       = 8
	Black        = 30
	Red          = 31
	Green        = 32
	Yellow       = 33
	Blue         = 34
	Magenta      = 35
	Cyan         = 36
	BrightGray   = 37
	DarkGray     = 90
	BrightRed    = 91
	BrightGreen  = 92
	BrightYellow = 93
	BrightBlue   = 94
	BrightPurple = 95
	BrightCyan   = 96
	White        = 97
)

nolint: varcheck, deadcode, megacheck

Variables

This section is empty.

Functions

func Color

func Color(code int, flags ...int) string

Color creates ANSI color syntax for terminal output

func ColorBold

func ColorBold(code int) string

ColorBold is an alias for bold ANSI color formatting

Types

This section is empty.

Jump to

Keyboard shortcuts

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