Documentation ¶
Overview ¶
Package colorize contains functions to stylize texts for terminal.
Index ¶
- Constants
- func Black(s string) string
- func BlackBright(s string) string
- func Blue(s string) string
- func BlueBright(s string) string
- func Bold(s string) string
- func Cyan(s string) string
- func CyanBright(s string) string
- func Dim(s string) string
- func Gray(s string) string
- func Green(s string) string
- func GreenBright(s string) string
- func Hidden(s string) string
- func Inverse(s string) string
- func Italic(s string) string
- func Magenta(s string) string
- func MagentaBright(s string) string
- func Red(s string) string
- func RedBright(s string) string
- func Strikethrough(s string) string
- func Underline(s string) string
- func White(s string) string
- func WhiteBright(s string) string
- func Yellow(s string) string
- func YellowBright(s string) string
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 BlackBright ¶
func BlueBright ¶
func CyanBright ¶
func GreenBright ¶
func MagentaBright ¶
func Strikethrough ¶
func WhiteBright ¶
func YellowBright ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.