russmack / goansi

Colour and style for the terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

goansi

Colour and style for the terminal.

Usage

Run the example:

go run examples/example.go

Use the library:

s := goansi.Anstring("I am black on green.").Black().BgGreen().Underline()
fmt.Println(s)

Or

style := goansi.NewStyle().Gray().BgBlue().Bold().BlinkSlow()
fmt.Println(style.Render("I am white on blue."))

License

BSD 3-Clause: LICENSE.txt

LICENSE

About

Colour and style for the terminal.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%