MCPcopy
hub / github.com/docker/compose / ansiColor

Function ansiColor

cmd/formatter/colors.go:92–94  ·  view source on GitHub ↗
(code, s string, formatOpts ...string)

Source from the content-addressed store, hash-verified

90}
91
92func ansiColor(code, s string, formatOpts ...string) string {
93 return fmt.Sprintf("%s%s%s", ansiColorCode(code, formatOpts...), s, ansiColorCode("0"))
94}
95
96// Everything about ansiColorCode color https://hyperskill.org/learn/step/18193
97func ansiColorCode(code string, formatOpts ...string) string {

Callers 5

makeColorFuncFunction · 0.85
addErrorMethod · 0.85
HandleKeyEventsMethod · 0.85
shortcutKeyColorFunction · 0.85
navColorFunction · 0.85

Calls 1

ansiColorCodeFunction · 0.85

Tested by

no test coverage detected