An ANSI colour terminal package for Go
Go 100.0%
26 1 0

Clone this repository

https://tangled.org/treybastian.com/colourize
git@knot.treybastian.com:treybastian.com/colourize

For self-hosted knots, clone URLs may differ based on your setup.

README.md

colourize#

GoDoc Build Status Coverage Status Go Report
Card

An ANSI colour terminal package for Go. Supports all ANSI colours and emphasis. Not compatible with Windows systems.

This project is feature complete for what I created it for 10 years ago.

Feel free to submit patches to patches@treybastian.com

Installation#

 go get tangled.org/trebastian.com/colourize 

Usage#

package main
import (
    c "tangled.org/trebastian.com/colourize"
    "fmt"
)

func main() {
  fmt.Println(c.Colourize("Hello World!", c.Green, c.Whitebg, c.Bold))
}