ansi

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BrightRed    = "\x1b[91m"
	BrightGreen  = "\x1b[92m"
	BrightYellow = "\x1b[93m"
	BrightCyan   = "\x1b[96m"
	BrightWhite  = "\x1b[97m"
	Bold         = "\x1b[1m"
	Reset        = "\x1b[0m"

	HighlightRed    = BrightRed + Bold
	HighlightGreen  = BrightGreen + Bold
	HighlightYellow = BrightYellow + Bold
	HighlightCyan   = BrightCyan + Bold
	HighlightWhite  = BrightWhite + Bold
)

Variables

View Source
var ToHTMLClass = map[string]string{
	"[91": "log-red",
	"[92": "log-green",
	"[93": "log-yellow",
	"[96": "log-cyan",
	"[97": "log-white",
}

Functions

func StripANSI

func StripANSI(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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