From bd32d957f83e1bd08766d820f6f0294f83afc36b Mon Sep 17 00:00:00 2001 From: Kevin Schoon Date: Sat, 3 Feb 2018 13:40:38 -0500 Subject: [PATCH] support more color choices --- types.go | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/types.go b/types.go index ad2d072..b99be81 100644 --- a/types.go +++ b/types.go @@ -66,10 +66,22 @@ type Config struct { } var colorMap = map[string]*color.Color{ - "red": color.New(color.FgRed), - "blue": color.New(color.FgBlue), - "green": color.New(color.FgGreen), - "white": color.New(color.FgWhite), + "black": color.New(color.FgBlack), + "hiblack": color.New(color.FgHiBlack), + "blue": color.New(color.FgBlue), + "hiblue": color.New(color.FgHiBlue), + "cyan": color.New(color.FgCyan), + "hicyan": color.New(color.FgHiCyan), + "green": color.New(color.FgGreen), + "higreen": color.New(color.FgHiGreen), + "magenta": color.New(color.FgMagenta), + "himagenta": color.New(color.FgHiMagenta), + "red": color.New(color.FgRed), + "hired": color.New(color.FgHiRed), + "white": color.New(color.FgWhite), + "hiwrite": color.New(color.FgHiWhite), + "yellow": color.New(color.FgYellow), + "hiyellow": color.New(color.FgHiYellow), } func (c *Config) UnmarshalJSON(raw []byte) error {