Documentation
¶
Index ¶
- Constants
- func Bg256(i int, s ...string) string
- func BgBlack(s ...string) string
- func BgBlue(s ...string) string
- func BgBrightBlack(s ...string) string
- func BgBrightBlue(s ...string) string
- func BgBrightCyan(s ...string) string
- func BgBrightGreen(s ...string) string
- func BgBrightMagenta(s ...string) string
- func BgBrightRed(s ...string) string
- func BgBrightWhite(s ...string) string
- func BgBrightYellow(s ...string) string
- func BgCyan(s ...string) string
- func BgGreen(s ...string) string
- func BgMagenta(s ...string) string
- func BgRGB(r, g, b int, s ...string) string
- func BgRed(s ...string) string
- func BgWhite(s ...string) string
- func BgYellow(s ...string) string
- func Black(s ...string) string
- func Blue(s ...string) string
- func BrightBlack(s ...string) string
- func BrightBlue(s ...string) string
- func BrightCyan(s ...string) string
- func BrightGreen(s ...string) string
- func BrightMagenta(s ...string) string
- func BrightRed(s ...string) string
- func BrightWhite(s ...string) string
- func BrightYellow(s ...string) string
- func Cyan(s ...string) string
- func Green(s ...string) string
- func LinearGradient(t uint, start, end string, amount float32) string
- func Magenta(s ...string) string
- func Red(s ...string) string
- func Reset() string
- func Txt256(i int, s ...string) string
- func TxtRGB(r, g, b int, s ...string) string
- func White(s ...string) string
- func Yellow(s ...string) string
Constants ¶
View Source
const ( Prefix = string("\u001b[") TxtBlack = "30" TxtRed = "31" TxtGreen = "32" TxtYellow = "33" TxtBlue = "34" TxtMagenta = "35" TxtCyan = "36" TxtWhite = "37" BkBlack = "40" BkRed = "41" BkGreen = "42" BkYellow = "43" BkBlue = "44" BkMagenta = "45" BkCyan = "46" BkWhite = "47" Bright = "1" Rst = "0" Suffix = "m" )
View Source
const ( C8 = iota C16 C216 C256 G216 G256 )
Variables ¶
This section is empty.
Functions ¶
func BgBrightBlack ¶
func BgBrightBlue ¶
func BgBrightCyan ¶
func BgBrightGreen ¶
func BgBrightMagenta ¶
func BgBrightRed ¶
func BgBrightWhite ¶
func BgBrightYellow ¶
func Black ¶
Black makes the text black or escapes the subsequent text black if called without arguments
func BrightBlack ¶
func BrightBlue ¶
func BrightCyan ¶
func BrightGreen ¶
func BrightMagenta ¶
func BrightWhite ¶
func BrightYellow ¶
func Green ¶
Green makes the text black or escapes the subsequent text green if called without arguments
func LinearGradient ¶ added in v0.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.