colorize

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package colorize contains functions to stylize texts for terminal.

Index

Constants

View Source
const (
	ColorBlack style = iota + 30
	ColorRed
	ColorGreen
	ColorYellow
	ColorBlue
	ColorMagenta
	ColorCyan
	ColorWhite
)

Colors

View Source
const (
	ColorBlackBright style = iota + 90
	ColorRedBright
	ColorGreenBright
	ColorYellowBright
	ColorBlueBright
	ColorMagentaBright
	ColorCyanBright
	ColorWhiteBright
)

Bright Colors

View Source
const (
	StyleBold style = iota + 1
	StyleDim
	StyleItalic
	StyleUnderline
)

Text Styles

View Source
const (
	StyleInverse style = iota + 7
	StyleHidden
	StyleStrikethrough
)

Additional Text Styles

Variables

This section is empty.

Functions

func Black

func Black(s string) string

func BlackBright

func BlackBright(s string) string

func Blue

func Blue(s string) string

func BlueBright

func BlueBright(s string) string

func Bold

func Bold(s string) string

func Cyan

func Cyan(s string) string

func CyanBright

func CyanBright(s string) string

func Dim

func Dim(s string) string

func Gray

func Gray(s string) string

func Green

func Green(s string) string

func GreenBright

func GreenBright(s string) string

func Hidden

func Hidden(s string) string

func Inverse

func Inverse(s string) string

func Italic

func Italic(s string) string

func Magenta

func Magenta(s string) string

func MagentaBright

func MagentaBright(s string) string

func Red

func Red(s string) string

func RedBright

func RedBright(s string) string

func Strikethrough

func Strikethrough(s string) string

func Underline

func Underline(s string) string

func White

func White(s string) string

func WhiteBright

func WhiteBright(s string) string

func Yellow

func Yellow(s string) string

func YellowBright

func YellowBright(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