Simple and fast micro-library for colored text and symbols.
Colors supported: Black, Red, Green, Yellow, Blue, Purple, Cyan, White and more..
All of these colors can be accesed through Color
function from colorado package
package main
import (
"fmt"
"github.com/jexlor/colorado"
)
func main() {
text := "red text with bright blue background"
fmt.Println(colorado.Color(text, colorado.Red, colorado.BrightBlueBg))
}
func main() {
text := "red text"
fmt.Println(colorado.Color(text, colorado.Red, ""))
}
To install the package using go get
, run the following command in your terminal:
go get github.com/jexlor/colorado