color

package
v0.0.0-...-e354141 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: EUPL-1.2 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Reset  Command = "\033[0m"
	Bold           = "\033[1m"
	Red    Color   = "\033[31m"
	Green          = "\033[32m"
	Yellow         = "\033[33m"
	Blue           = "\033[34m"
	Purple         = "\033[35m"
	Cyan           = "\033[36m"
	Gray           = "\033[37m"
	White          = "\033[97m"
)

Variables

View Source
var (
	ColorEnabled = true
)

Functions

func Colorize

func Colorize(s string, c Color, bold bool) string

Types

type Color

type Color string

type Command

type Command string

Jump to

Keyboard shortcuts

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