MCPcopy Create free account
hub / github.com/docker/compose / rainbowColor

Function rainbowColor

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

Source from the content-addressed store, hash-verified

120)
121
122func rainbowColor() colorFunc {
123 mutex.Lock()
124 defer mutex.Unlock()
125 result := rainbow[currentIndex]
126 currentIndex = (currentIndex + 1) % len(rainbow)
127 return result
128}
129
130func init() {
131 colors := map[string]colorFunc{}

Callers

nothing calls this directly

Calls 1

LockMethod · 0.45

Tested by

no test coverage detected