#240·color

Library not compatible with text/tabwriter

Author: iblancasaCreated Oct 2, 2024Updated Feb 10, 2025

It seems the library doesn't work well with text/tabwriter.

image

I created a tabwriter like this:

go
w := tabwriter.NewWriter(os.Stdout, 0, 0, 2, ' ', tabwriter.Debug)

Created the strings with colors like this:

go
color.RedString("Unmaintained")

And printed with fmt.Fprintf.