MCPcopy Create free account

hub / github.com/gookit/color / functions

Functions460 in github.com/gookit/color

↓ 1 callersFunctionInfop
************************************************************* * quick use style print message ******************************************************
colorp/colorp.go:78
↓ 1 callersFunctionIsDefinedTag
IsDefinedTag is defined tag name
color_tag.go:520
↓ 1 callersMethodIsEmpty
IsEmpty options
color_16.go:31
↓ 1 callersMethodIsEmpty
IsEmpty color code
quickstart.go:69
↓ 1 callersFunctionLprint
Lprint passes colored messages to a log.Logger for printing. Notice: should be goroutine safe
utils.go:75
↓ 1 callersFunctionMagentaf
Magentaf print message with Magenta color
colorp/colorp.go:68
↓ 1 callersFunctionMagentaln
Magentaln print message line with Magenta color
colorp/colorp.go:71
↓ 1 callersFunctionMagentap
Magentap print message with Magenta color
colorp/colorp.go:65
↓ 1 callersFunctionNewDefaultScheme
NewDefaultScheme create a default color Scheme
style.go:260
↓ 1 callersFunctionNewPrinter
NewPrinter instance
quickstart.go:33
↓ 1 callersFunctionNewScheme
NewScheme create new Scheme
style.go:255
↓ 1 callersFunctionNewTagParser
NewTagParser create
color_tag.go:305
↓ 1 callersFunctionNotRenderTag
NotRenderTag on call color.Xprint, color.PrintX
color.go:108
↓ 1 callersMethodParseByEnv
func (tp *TagParser) Disable() *TagParser { tp.disable = true return tp } ParseByEnv parse given string. will check package setting.
color_tag.go:315
↓ 1 callersMethodPrint
Print rendering colored messages
quickstart.go:54
↓ 1 callersMethodPrint
Print message
quickstart.go:81
↓ 1 callersMethodPrint
Print print message
color_rgb.go:182
↓ 1 callersMethodPrint
Print print message
color_rgb.go:369
↓ 1 callersMethodPrintf
Printf format and rendering colored messages
quickstart.go:59
↓ 1 callersMethodPrintf
Printf message
quickstart.go:84
↓ 1 callersMethodPrintf
Printf format and print message
color_rgb.go:187
↓ 1 callersMethodPrintf
Printf format and print message
color_rgb.go:374
↓ 1 callersMethodPrintln
Println rendering colored messages with newline
quickstart.go:64
↓ 1 callersMethodPrintln
Println message
quickstart.go:87
↓ 1 callersMethodPrintln
Println print message with newline
color_rgb.go:192
↓ 1 callersMethodRGB
RGB convert color-256 to RGB color.
color_256.go:118
↓ 1 callersMethodRGBColor
RGBColor convert color-256 to RGB color.
color_256.go:123
↓ 1 callersFunctionRGBFromHEX
RGBFromHEX quick RGBColor from hex string, alias of HEX()
color_rgb.go:115
↓ 1 callersFunctionRGBToHSVInts
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 callersFunctionRedf
Redf print message with Red color
colorp/colorp.go:14
↓ 1 callersFunctionRedln
Redln print message line with Red color
colorp/colorp.go:17
↓ 1 callersFunctionRedp
************************************************************* * quick use color func print message. ************************************************
colorp/colorp.go:11
↓ 1 callersFunctionResetDebug
ResetDebug reset debug mode
color.go:143
↓ 1 callersFunctionResetOptions
ResetOptions reset all package option setting
color.go:117
↓ 1 callersFunctionRgb
Rgb alias of the RGB()
color_rgb.go:80
↓ 1 callersFunctionRgb2ansi
Rgb2ansi convert RGB-code to 16-code, alias of the RgbToAnsi()
convert.go:532
↓ 1 callersFunctionRgb2hex
Rgb2hex alias of the RgbToHex()
convert.go:475
↓ 1 callersFunctionRgb2short
************************************************************* * 8bit(256) color <=> RGB/True color *************************************************
convert.go:580
↓ 1 callersFunctionRgbFromInt
RgbFromInt create instance from int r,g,b value
color_rgb.go:86
↓ 1 callersFunctionRgbFromInts
RgbFromInts create instance from []int r,g,b value
color_rgb.go:89
↓ 1 callersFunctionRgbStrToHsl
RgbStrToHsl convert rgb(r,g,b) string to HSL
convert.go:759
↓ 1 callersFunctionRgbTo256Table
RgbTo256Table mapping data
convert.go:401
↓ 1 callersMethodSprint
Sprint returns rendering colored messages
quickstart.go:44
↓ 1 callersMethodSprint
Sprint returns rendered message
color_rgb.go:197
↓ 1 callersMethodSprint
Sprint returns rendered message
color_rgb.go:384
↓ 1 callersFunctionSprintf
Sprintf format and return rendered string
utils.go:101
↓ 1 callersMethodSprintf
Sprintf returns format and rendering colored messages
quickstart.go:49
↓ 1 callersMethodSprintf
Sprintf returns format and rendered message
color_rgb.go:200
↓ 1 callersMethodSprintf
Sprintf returns format and rendered message
color_rgb.go:387
↓ 1 callersFunctionString
String alias of the ReplaceTag
utils.go:106
↓ 1 callersMethodStyle
Style get by name
style.go:269
↓ 1 callersFunctionSuccessf
Successf print message with success style
quickstart.go:205
↓ 1 callersFunctionSuccessf
Successf print message with success style
colorp/colorp.go:90
↓ 1 callersMethodSuccessf
Successf message
quickstart.go:92
↓ 1 callersFunctionSuccessln
Successln print message with success style
quickstart.go:208
↓ 1 callersFunctionSuccessln
Successln print message with success style
colorp/colorp.go:93
↓ 1 callersMethodSuccessln
Successln message
quickstart.go:95
↓ 1 callersFunctionSuccessp
Successp print message with success color
quickstart.go:202
↓ 1 callersFunctionSuccessp
Successp print message with success color
colorp/colorp.go:87
↓ 1 callersFunctionText
Text alias of the ReplaceTag
utils.go:109
↓ 1 callersMethodText
Text render a text message
color_16.go:198
↓ 1 callersMethodToBg
ToBg convert to background color
color_rgb.go:238
↓ 1 callersMethodToFg
ToFg convert to foreground color
color_rgb.go:244
↓ 1 callersFunctionWarnf
Warnf print message with Warn style
quickstart.go:223
↓ 1 callersFunctionWarnf
Warnf print message with Warn style
colorp/colorp.go:108
↓ 1 callersMethodWarnf
Warnf message print
style.go:282
↓ 1 callersMethodWarnf
Warnf message
quickstart.go:106
↓ 1 callersFunctionWarnln
Warnln print message with Warn style
quickstart.go:226
↓ 1 callersFunctionWarnln
Warnln print message with Warn style
colorp/colorp.go:111
↓ 1 callersMethodWarnln
Warnln message print
style.go:287
↓ 1 callersMethodWarnln
Warnln message
quickstart.go:111
↓ 1 callersFunctionWarnp
Warnp print message with Warn color
quickstart.go:220
↓ 1 callersFunctionWarnp
Warnp print message with Warn color
colorp/colorp.go:105
↓ 1 callersFunctionYellowf
Yellowf print message with Yellow color
colorp/colorp.go:59
↓ 1 callersFunctionYellowln
Yellowln print message line with Yellow color
colorp/colorp.go:62
↓ 1 callersFunctionYellowp
Yellowp print message with Yellow color
colorp/colorp.go:56
↓ 1 callersFunctioncolorUsage
()
_examples/demo.go:14
↓ 1 callersFunctiondetectColorLevelFromEnv
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 callersFunctiondetectSpecialTermColor
detect special term color support
detect_nonwin.go:15
↓ 1 callersFunctiondetectWSL
https://github.com/Microsoft/WSL/issues/423#issuecomment-221627364
detect_env.go:156
↓ 1 callersFunctioninit256ToHexMap
()
convert.go:391
↓ 1 callersFunctioninitHex2basicMap
()
convert.go:382
↓ 1 callersFunctionisValidUint8
equals: return ok ? val1 : val2
utils.go:172
↓ 1 callersFunctionmockOsEnv
(mp map[string]string, fn func())
color_test.go:837
↓ 1 callersFunctionrepairMatchedTag
(full, tag, body string)
color_tag.go:374
↓ 1 callersFunctionstringToArr
(str, sep string)
utils.go:199
↓ 1 callersFunctiontryEnableOnCONOUT
()
detect_windows.go:78
↓ 1 callersFunctiontryEnableOnStdout
()
detect_windows.go:94
↓ 1 callersFunctiontryEnableVTP
try force enable colors on Windows terminal
detect_windows.go:48
MethodAddOpts
AddOpts add options
color_256.go:233
FunctionBenchmarkColorRender_SingleString
(b *testing.B)
performance_test.go:27
FunctionBenchmarkColorRender_TwoStrings
(b *testing.B)
performance_test.go:34
FunctionBenchmarkColorRender_UserPattern
(b *testing.B)
performance_test.go:41
FunctionBenchmarkFmtSprint_SingleString
Baseline comparisons
performance_test.go:49
FunctionBenchmarkFmtSprint_TwoStrings
(b *testing.B)
performance_test.go:55
FunctionBenchmarkFmtSprint_UserPattern
(b *testing.B)
performance_test.go:61
FunctionBenchmarkRenderCode_SingleString
(b *testing.B)
performance_test.go:9
FunctionBenchmarkRenderCode_TwoStrings
(b *testing.B)
performance_test.go:15
FunctionBenchmarkRenderCode_UserPattern
(b *testing.B)
performance_test.go:21
FunctionBluef
Bluef print message with Blue color
quickstart.go:138
← previousnext →201–300 of 460, ranked by callers