Color is a library for colouring things.
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.
- Create fallback color
- Add color groups. Now via
color.Parse()
- Add custom color painters. Now via
color.NewColor()
- Name all the 256 term colors