Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gookit/color
/ functions
Functions
460 in github.com/gookit/color
⨍
Functions
460
◇
Types & classes
16
↓ 1 callers
Function
Infop
************************************************************* * quick use style print message ******************************************************
colorp/colorp.go:78
↓ 1 callers
Function
IsDefinedTag
IsDefinedTag is defined tag name
color_tag.go:520
↓ 1 callers
Method
IsEmpty
IsEmpty options
color_16.go:31
↓ 1 callers
Method
IsEmpty
IsEmpty color code
quickstart.go:69
↓ 1 callers
Function
Lprint
Lprint passes colored messages to a log.Logger for printing. Notice: should be goroutine safe
utils.go:75
↓ 1 callers
Function
Magentaf
Magentaf print message with Magenta color
colorp/colorp.go:68
↓ 1 callers
Function
Magentaln
Magentaln print message line with Magenta color
colorp/colorp.go:71
↓ 1 callers
Function
Magentap
Magentap print message with Magenta color
colorp/colorp.go:65
↓ 1 callers
Function
NewDefaultScheme
NewDefaultScheme create a default color Scheme
style.go:260
↓ 1 callers
Function
NewPrinter
NewPrinter instance
quickstart.go:33
↓ 1 callers
Function
NewScheme
NewScheme create new Scheme
style.go:255
↓ 1 callers
Function
NewTagParser
NewTagParser create
color_tag.go:305
↓ 1 callers
Function
NotRenderTag
NotRenderTag on call color.Xprint, color.PrintX
color.go:108
↓ 1 callers
Method
ParseByEnv
func (tp *TagParser) Disable() *TagParser { tp.disable = true return tp } ParseByEnv parse given string. will check package setting.
color_tag.go:315
↓ 1 callers
Method
Print
Print rendering colored messages
quickstart.go:54
↓ 1 callers
Method
Print
Print message
quickstart.go:81
↓ 1 callers
Method
Print
Print print message
color_rgb.go:182
↓ 1 callers
Method
Print
Print print message
color_rgb.go:369
↓ 1 callers
Method
Printf
Printf format and rendering colored messages
quickstart.go:59
↓ 1 callers
Method
Printf
Printf message
quickstart.go:84
↓ 1 callers
Method
Printf
Printf format and print message
color_rgb.go:187
↓ 1 callers
Method
Printf
Printf format and print message
color_rgb.go:374
↓ 1 callers
Method
Println
Println rendering colored messages with newline
quickstart.go:64
↓ 1 callers
Method
Println
Println message
quickstart.go:87
↓ 1 callers
Method
Println
Println print message with newline
color_rgb.go:192
↓ 1 callers
Method
RGB
RGB convert color-256 to RGB color.
color_256.go:118
↓ 1 callers
Method
RGBColor
RGBColor convert color-256 to RGB color.
color_256.go:123
↓ 1 callers
Function
RGBFromHEX
RGBFromHEX quick RGBColor from hex string, alias of HEX()
color_rgb.go:115
↓ 1 callers
Function
RGBToHSVInts
RGBToHSVInts convert RGB to HSV int values. r, g, b: [0, 255] => h (0-360), s (0-100), v (0-100)
convert.go:940
↓ 1 callers
Function
Redf
Redf print message with Red color
colorp/colorp.go:14
↓ 1 callers
Function
Redln
Redln print message line with Red color
colorp/colorp.go:17
↓ 1 callers
Function
Redp
************************************************************* * quick use color func print message. ************************************************
colorp/colorp.go:11
↓ 1 callers
Function
ResetDebug
ResetDebug reset debug mode
color.go:143
↓ 1 callers
Function
ResetOptions
ResetOptions reset all package option setting
color.go:117
↓ 1 callers
Function
Rgb
Rgb alias of the RGB()
color_rgb.go:80
↓ 1 callers
Function
Rgb2ansi
Rgb2ansi convert RGB-code to 16-code, alias of the RgbToAnsi()
convert.go:532
↓ 1 callers
Function
Rgb2hex
Rgb2hex alias of the RgbToHex()
convert.go:475
↓ 1 callers
Function
Rgb2short
************************************************************* * 8bit(256) color <=> RGB/True color *************************************************
convert.go:580
↓ 1 callers
Function
RgbFromInt
RgbFromInt create instance from int r,g,b value
color_rgb.go:86
↓ 1 callers
Function
RgbFromInts
RgbFromInts create instance from []int r,g,b value
color_rgb.go:89
↓ 1 callers
Function
RgbStrToHsl
RgbStrToHsl convert rgb(r,g,b) string to HSL
convert.go:759
↓ 1 callers
Function
RgbTo256Table
RgbTo256Table mapping data
convert.go:401
↓ 1 callers
Method
Sprint
Sprint returns rendering colored messages
quickstart.go:44
↓ 1 callers
Method
Sprint
Sprint returns rendered message
color_rgb.go:197
↓ 1 callers
Method
Sprint
Sprint returns rendered message
color_rgb.go:384
↓ 1 callers
Function
Sprintf
Sprintf format and return rendered string
utils.go:101
↓ 1 callers
Method
Sprintf
Sprintf returns format and rendering colored messages
quickstart.go:49
↓ 1 callers
Method
Sprintf
Sprintf returns format and rendered message
color_rgb.go:200
↓ 1 callers
Method
Sprintf
Sprintf returns format and rendered message
color_rgb.go:387
↓ 1 callers
Function
String
String alias of the ReplaceTag
utils.go:106
↓ 1 callers
Method
Style
Style get by name
style.go:269
↓ 1 callers
Function
Successf
Successf print message with success style
quickstart.go:205
↓ 1 callers
Function
Successf
Successf print message with success style
colorp/colorp.go:90
↓ 1 callers
Method
Successf
Successf message
quickstart.go:92
↓ 1 callers
Function
Successln
Successln print message with success style
quickstart.go:208
↓ 1 callers
Function
Successln
Successln print message with success style
colorp/colorp.go:93
↓ 1 callers
Method
Successln
Successln message
quickstart.go:95
↓ 1 callers
Function
Successp
Successp print message with success color
quickstart.go:202
↓ 1 callers
Function
Successp
Successp print message with success color
colorp/colorp.go:87
↓ 1 callers
Function
Text
Text alias of the ReplaceTag
utils.go:109
↓ 1 callers
Method
Text
Text render a text message
color_16.go:198
↓ 1 callers
Method
ToBg
ToBg convert to background color
color_rgb.go:238
↓ 1 callers
Method
ToFg
ToFg convert to foreground color
color_rgb.go:244
↓ 1 callers
Function
Warnf
Warnf print message with Warn style
quickstart.go:223
↓ 1 callers
Function
Warnf
Warnf print message with Warn style
colorp/colorp.go:108
↓ 1 callers
Method
Warnf
Warnf message print
style.go:282
↓ 1 callers
Method
Warnf
Warnf message
quickstart.go:106
↓ 1 callers
Function
Warnln
Warnln print message with Warn style
quickstart.go:226
↓ 1 callers
Function
Warnln
Warnln print message with Warn style
colorp/colorp.go:111
↓ 1 callers
Method
Warnln
Warnln message print
style.go:287
↓ 1 callers
Method
Warnln
Warnln message
quickstart.go:111
↓ 1 callers
Function
Warnp
Warnp print message with Warn color
quickstart.go:220
↓ 1 callers
Function
Warnp
Warnp print message with Warn color
colorp/colorp.go:105
↓ 1 callers
Function
Yellowf
Yellowf print message with Yellow color
colorp/colorp.go:59
↓ 1 callers
Function
Yellowln
Yellowln print message line with Yellow color
colorp/colorp.go:62
↓ 1 callers
Function
Yellowp
Yellowp print message with Yellow color
colorp/colorp.go:56
↓ 1 callers
Function
colorUsage
()
_examples/demo.go:14
↓ 1 callers
Function
detectColorLevelFromEnv
detectColorFromEnv returns the color level COLORTERM, FORCE_COLOR, TERM_PROGRAM, or determined from the TERM environment variable. refer the terminfo
detect_env.go:90
↓ 1 callers
Function
detectSpecialTermColor
detect special term color support
detect_nonwin.go:15
↓ 1 callers
Function
detectWSL
https://github.com/Microsoft/WSL/issues/423#issuecomment-221627364
detect_env.go:156
↓ 1 callers
Function
init256ToHexMap
()
convert.go:391
↓ 1 callers
Function
initHex2basicMap
()
convert.go:382
↓ 1 callers
Function
isValidUint8
equals: return ok ? val1 : val2
utils.go:172
↓ 1 callers
Function
mockOsEnv
(mp map[string]string, fn func())
color_test.go:837
↓ 1 callers
Function
repairMatchedTag
(full, tag, body string)
color_tag.go:374
↓ 1 callers
Function
stringToArr
(str, sep string)
utils.go:199
↓ 1 callers
Function
tryEnableOnCONOUT
()
detect_windows.go:78
↓ 1 callers
Function
tryEnableOnStdout
()
detect_windows.go:94
↓ 1 callers
Function
tryEnableVTP
try force enable colors on Windows terminal
detect_windows.go:48
Method
AddOpts
AddOpts add options
color_256.go:233
Function
BenchmarkColorRender_SingleString
(b *testing.B)
performance_test.go:27
Function
BenchmarkColorRender_TwoStrings
(b *testing.B)
performance_test.go:34
Function
BenchmarkColorRender_UserPattern
(b *testing.B)
performance_test.go:41
Function
BenchmarkFmtSprint_SingleString
Baseline comparisons
performance_test.go:49
Function
BenchmarkFmtSprint_TwoStrings
(b *testing.B)
performance_test.go:55
Function
BenchmarkFmtSprint_UserPattern
(b *testing.B)
performance_test.go:61
Function
BenchmarkRenderCode_SingleString
(b *testing.B)
performance_test.go:9
Function
BenchmarkRenderCode_TwoStrings
(b *testing.B)
performance_test.go:15
Function
BenchmarkRenderCode_UserPattern
(b *testing.B)
performance_test.go:21
Function
Bluef
Bluef print message with Blue color
quickstart.go:138
← previous
next →
201–300 of 460, ranked by callers