bayashi / colorpalette

`colorpalette` provides just a mapping of color name to color

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

colorpalette

colorpalette CI colorpalette report card Go Reference: colorpalette

colorpalette provides just a mapping of color name to *color.Color.

Usage

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.

See Also

https://github.com/fatih/color

Installation

go get github.com/bayashi/colorpalette

License

MIT License

Author

Dai Okabayashi: https://github.com/bayashi

About

`colorpalette` provides just a mapping of color name to color

License:MIT License


Languages

Language:Go 100.0%