truecolor
truecolor copied to clipboard
Truecolor is a Go package that provides methods for printing 24-bit true color text in your terminal

Truecolor is a Go package that provides methods for printing 24-bit true color text in your terminal. Not all terminals support 24-bit color, see https://github.com/termstandard/colors for more.
Installation
go get github.com/wayneashleyberry/truecolor
Usage
package main
import (
"github.com/wayneashleyberry/truecolor/pkg/color"
)
func main() {
color.Color(186, 218, 85).Println("Hello, World!")
color.Black().Background(186, 218, 85).Println("Hello, World!")
color.White().Underline().Print("Hello, World!\n")
color.White().Dim().Println("Hello, World!")
color.White().Italic().Println("Hello, World!")
color.White().Bold().Println("Hello, World!")
color.Color(255, 165, 00).Printf("Hello, %s!\n", "World")
}