📚 go-colortext - Awesome Go Library for Command Line

Go Gopher mascot for go-colortext

Go library for color output in terminals.

🏷️ Command Line
📂 Libraries for building Console Applications and Console User Interfaces.
214 stars
View on GitHub 🔗

Detailed Description of go-colortext

go-colortext package GoSearch

This is a package to change the color of the text and background in the console, working both under Windows and other systems.

Under Windows, the console APIs are used. Otherwise, ANSI texts are output.

Docs: http://godoc.org/github.com/daviddengcn/go-colortext (packages that import ct)

Usage:

ct.Foreground(Green, false)
fmt.Println("Green text starts here...")
ct.ChangeColor(Red, true, White, false)
fmt.Println(...)
ct.ResetColor()

LICENSE

BSD/MIT license