func Get(s string) Colorer {
	return lookup[s]
}
Get fetches the colorer func for the given color
package colors
import (
	"fmt"
	ui "github.com/jroimartin/gocui"
)
var (
	ansiColors = map[string]string{
		"black":   "30",
		"red":     "31",
		"green":   "32",
		"yellow":  "33",
		"blue":    "34",
		"magenta": "35",
		"cyan":    "36",
		"white":   "37",
	}
	lookup = map[string]Colorer{
		"black": func(s string) string {
			return fmt.Sprintf(fmt.Sprintf("\033[%sm%%s\033[%sm", ansiColors["black"], ansiColors["black"]), s)
		},
		"red": func(s string) string {
			return fmt.Sprintf(fmt.Sprintf("\033[%sm%%s\033[%sm", ansiColors["red"], ansiColors["red"]), s)
		},
		"green": func(s string) string {
			return fmt.Sprintf(fmt.Sprintf("\033[%sm%%s\033[%sm", ansiColors["green"], ansiColors["green"]), s)
		},
		"yellow": func(s string) string {
			return fmt.Sprintf(fmt.Sprintf("\033[%sm%%s\033[%sm", ansiColors["yellow"], ansiColors["yellow"]), s)
		},
		"blue": func(s string) string {
			return fmt.Sprintf(fmt.Sprintf("\033[%sm%%s\033[%sm", ansiColors["blue"], ansiColors["blue"]), s)
		},
		"magenta": func(s string) string {
			return fmt.Sprintf(fmt.Sprintf("\033[%sm%%s\033[%sm", ansiColors["magenta"], ansiColors["magenta"]), s)
		},
		"cyan": func(s string) string {
			return fmt.Sprintf(fmt.Sprintf("\033[%sm%%s\033[%sm", ansiColors["cyan"], ansiColors["cyan"]), s)
		},
		"white": func(s string) string {
			return fmt.Sprintf(fmt.Sprintf("\033[%sm%%s\033[%sm", ansiColors["white"], ansiColors["white"]), s)
		},
	}
	background = map[string]ui.Attribute{
		"black":   ui.ColorBlack,
		"red":     ui.ColorRed,
		"green":   ui.ColorGreen,
		"yellow":  ui.ColorYellow,
		"blue":    ui.ColorBlue,
		"magenta": ui.ColorMagenta,
		"cyan":    ui.ColorCyan,
		"white":   ui.ColorWhite,
	}
)
func GetBackground(s string) ui.Attribute {
	c, ok := background[s]
	if !ok {
		return background["black"]
	}
	return c
}
type Colorer func(string) string