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

Function init

cmd/formatter/colors.go:130–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128}
129
130func init() {
131 colors := map[string]colorFunc{}
132 for i, name := range names {
133 colors[name] = makeColorFunc(strconv.Itoa(ansiColorOffset + i))
134 colors["intense_"+name] = makeColorFunc(strconv.Itoa(ansiColorOffset+i) + ";1")
135 }
136 rainbow = []colorFunc{
137 colors["cyan"],
138 colors["yellow"],
139 colors["green"],
140 colors["magenta"],
141 colors["blue"],
142 colors["intense_cyan"],
143 colors["intense_yellow"],
144 colors["intense_green"],
145 colors["intense_magenta"],
146 colors["intense_blue"],
147 }
148}

Callers

nothing calls this directly

Calls 1

makeColorFuncFunction · 0.85

Tested by

no test coverage detected