/color

Colour your shell output

Primary LanguageGoMIT LicenseMIT

Color

Travis Status Github Status GoDoc

Color is a library for colouring things.

Usage

package main

import (
    "fmt"
    "runtime"

    "github.com/jpedro/color"
)

func main() {
    name := "green"
    text := "Runtime OS: %s"
    fmt.Println(color.Paint(name, text, runtime.GOOS))
}

Check the cli/color for your terminal needs.

Todos

  • Create fallback color
  • Add color groups. Now via color.Parse()
  • Add custom color painters. Now via color.NewColor()
  • Name all the 256 term colors