color icon indicating copy to clipboard operation
color copied to clipboard

Color package for Go (golang)

Results 50 color issues
Sort by recently updated
recently updated
newest added

It would be a good idea to apart from supporting [`NO_COLOR`](https://nocolor) to support easy forcing of color output. The `FORCE_COLOR` environmental variable is less spread across industry, but still is...

It's helpful in reducing unnecessary code, and it does not cause break change. before ```go c := color.New(color.FgCyan) c.EnableColor() colorStr := c.Sprintf("foo") ``` after ```go colorStr := color.New(color.FgCyan).EnableColor().Sprintf("foo") ```

Excuse me, can I do it to define two colors at the same time, the left is the command and the right is the result ```go func Notice(noticeTXT, resultTXT string)...

How can I set prefix time like log package?

Tried to install this package in GO 1.18 and go the following error. go install github.com/fatih/color@latest **package github.com/fatih/color is not a main package** Any suggestion? :)

So I added this package to a project of mine and when I run it most of the time it prints the colours correctly but there is a good few...

This is a minimal program to reproduce the issue (I am on Ubuntu Linux 20.04 and I use gnome-terminal): ```go package main import "github.com/fatih/color" func main() { red := color.New(color.FgRed)...

Can we add truecolor support? The ability to specify any R, G and B value?

Now `color.Set` and `color.Unset` are exported so that we can color output to the standard output. Can you export `color.SetWriter` and `color.UnsetWriter`? This is pretty useful when we cannot change...