Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mattn/go-colorable
/ functions
Functions
34 in github.com/mattn/go-colorable
⨍
Functions
34
◇
Types & classes
13
↓ 7 callers
Method
Write
Write writes data on console
colorable_windows.go:438
↓ 6 callers
Function
NewNonColorable
NewNonColorable returns new instance of Writer which removes escape sequence from Writer.
noncolorable.go:14
↓ 6 callers
Function
atoiWithDefault
returns Atoi(s) unless s == "" in which case it returns def
colorable_windows.go:430
↓ 4 callers
Function
checkEncoding
checkEncoding checks that colorable is output encoding agnostic as long as the encoding is a superset of ASCII. This implies that one byte not part of
colorable_test.go:13
↓ 2 callers
Function
NewColorable
NewColorable returns new instance of writer which handles escape sequence from File.
colorable_windows.go:103
↓ 2 callers
Function
NewColorable
NewColorable returns new instance of Writer which handles escape sequence.
colorable_others.go:14
↓ 2 callers
Function
NewColorableStdout
NewColorableStdout returns new instance of Writer which handles escape sequence for stdout.
colorable_others.go:23
↓ 2 callers
Function
n256setup
()
colorable_windows.go:1030
↓ 2 callers
Function
toHSV
(rgb int)
colorable_windows.go:957
↓ 1 callers
Function
NewColorableStderr
NewColorableStderr returns new instance of Writer which handles escape sequence for stderr.
colorable_others.go:28
↓ 1 callers
Method
backgroundAttr
()
colorable_windows.go:905
↓ 1 callers
Method
dist
(b hsv)
colorable_windows.go:944
↓ 1 callers
Function
doTitleSequence
`\033]0;TITLESTR\007`
colorable_windows.go:391
↓ 1 callers
Method
find
(rgb int)
colorable_windows.go:994
↓ 1 callers
Method
foregroundAttr
()
colorable_windows.go:889
↓ 1 callers
Function
minmax3f
(a, b, c float32)
colorable_windows.go:1007
↓ 1 callers
Function
toHSVTable
(rgbTable []consoleColor)
colorable_windows.go:986
Function
BenchmarkWriterPlaintext
(b *testing.B)
colorable_windows_bench_test.go:11
Function
BenchmarkWriterPlaintextLarge
(b *testing.B)
colorable_windows_bench_test.go:20
Function
EnableColorsStdout
EnableColorsStdout enable colors if possible.
colorable_windows.go:1042
Function
EnableColorsStdout
EnableColorsStdout enable colors if possible.
colorable_others.go:33
Function
NewColorableStderr
NewColorableStderr returns new instance of writer which handles escape sequence for stderr.
colorable_windows.go:127
Function
NewColorableStdout
NewColorableStdout returns new instance of writer which handles escape sequence for stdout.
colorable_windows.go:122
Function
TestColorable
(t *testing.T)
colorable_test.go:82
Function
TestEncoding
(t *testing.T)
colorable_test.go:26
Function
TestNonColorable
(t *testing.T)
colorable_test.go:33
Function
TestNonColorableBadESC
(t *testing.T)
colorable_test.go:74
Function
TestNonColorableESC
(t *testing.T)
colorable_test.go:66
Function
TestNonColorableNil
(t *testing.T)
colorable_test.go:50
Method
Write
Write writes data on console
noncolorable.go:19
Function
main
()
cmd/colorable/colorable.go:10
Function
main
()
_example/logrus/main.go:8
Function
main
()
_example/title/main.go:10
Function
main
()
_example/escape-seq/main.go:10