()
| 128 | } |
| 129 | |
| 130 | func 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 | } |
nothing calls this directly
no test coverage detected