ansi

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package ansi contains ANSI color constants for coloring log output

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Colorize

func Colorize(s string, color Code) string

Colorize wraps the string in the specified ansi color

Types

type Code

type Code string

Code represents an ansi code

const (
	BoldRed   Code = "\033[31;1m"
	BoldGreen Code = "\033[32;1m"
	BoldCyan  Code = "\033[36;1m"
	Yellow    Code = "\033[33m"
	Reset     Code = "\033[0;m"
)

ANSI color constants for job log output

Jump to

Keyboard shortcuts

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