colorpalette
provides just a mapping of color name to *color.Color.
package main
import (
"fmt"
c "github.com/bayashi/colorpalette"
)
func main() {
col := c.Get("red")
col.Sprint("apple") // "\x1b[91mapple\x1b[0m"
}
See source code to get list of a color name.
https://github.com/fatih/color
go get github.com/bayashi/colorpalette
MIT License
Dai Okabayashi: https://github.com/bayashi