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 (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 Windows 10 since some build > supports ANSI-colors and the library work on it. > > суббота, 2 февраля 2013 г., 3:02:04 UTC+4 пользователь Constantine > Vassilev написал: > > 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*? > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.