I wrote a similar library once https://github.com/nhooyr/color
But I like your approach better because you can just use fmt.Printf
On Sun, Nov 6, 2016 at 10:07 PM 'Константин Иванов' via golang-nuts <
golang-nuts@googlegroups.com> wrote:
> Hello. I wrote the library that allows to use ANSI-colors
https://godoc.org/?q=terminal+color
On Friday, 1 February 2013 23:02:04 UTC, Constantine Vassilev wrote:
>
> I am printing a lot lines in command line during testing.
> Visualizing using a color would be great.
>
> Are there a way to send color related commands to the terminal using*
> printf*?
>
Hello. I wrote the library that allows to use ANSI-colors (unix and win10+).
It allows to use colored printf such as
fmt.Priintf("neutral, red %d, cyan %d, bold %s", Red(35), Cyan(100), Bold(
"bold"))
Check it out https://github.com/logrusorgru/aurora
The library doesn't support Windows. But Win