You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: color.go
    path of file: ./repos/plumber/vendor/github.com/v2pro/plz/countlog/spi
    
    the code of the file until where you have to start completion: package spi

var coloredNames = map[int]string{}

func init() {
	levels := []int{
		LevelTraceCall,
		LevelTrace,
		LevelDebugCall,
		LevelDebu
    
func getColor(level int) int {
	switch level {
	case LevelTrace, LevelTraceCall:
		return cyan
	case LevelDebug, LevelDebugCall:
		return blue
	case LevelInfo, LevelInfoCall:
		return green
	case LevelWarn:
		return yellow
	case LevelError:
		return red
	case LevelFatal:
		return purple
	default:
		return nocolor
	}
}