fatih / color

Color package for Go (golang)
https://pkg.go.dev/github.com/fatih/color
MIT License
7.24k stars 615 forks source link

rich-text formatting completed #121

Closed iambenkay closed 3 years ago

iambenkay commented 3 years ago

What's New?

Includes a whole new way to format strings with various rich text identifiers.

c := color.New()

c.PrintlnRT("This is the example of Rich Text Formatting in the ~terminal~. (fg:black|(bg:cyan|BLACK text on a CYAN background)).")

Output:

image

Usage

BOLD - bold text ITALICS - italicized text UNDERLINE - ~underlined text~ TEXT COLOR - (fg:red|red text) BACKGROUND COLOR - (bg:cyan|cyan background)