color

package
v0.0.0-...-18618f5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Red         = color.New(color.FgRed).SprintFunc()
	Bold        = color.New(color.Bold).SprintFunc()
	Yellow      = color.New(color.FgYellow).SprintFunc()
	RedBold     = color.New(color.FgRed, color.Bold).SprintFunc()
	CyanBold    = color.New(color.FgCyan, color.Bold).SprintFunc()
	Cyan        = color.New(color.FgCyan).SprintFunc()
	GreenBold   = color.New(color.FgGreen, color.Bold).SprintFunc()
	Green       = color.New(color.FgGreen).SprintFunc()
	HiGreenBold = color.New(color.FgHiGreen, color.Bold).SprintFunc()
	Underline   = color.New(color.Underline).SprintFunc()
	YellowBold  = color.New(color.FgYellow, color.Bold).SprintFunc()
)

coloring stringers

View Source
var Error = color.Error

Functions

func StripColor

func StripColor(s string) string

StripColor - strips ANSI color control characters from a string

func TrueLen

func TrueLen(s string) int

TrueLen returns true length of a colorized string in characters

Types

This section is empty.

Jump to

Keyboard shortcuts

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