fatih / color

Color package for Go (golang)
https://pkg.go.dev/github.com/fatih/color
MIT License
7.26k stars 615 forks source link

${Color}String tries to interpret percent signs #45

Closed 0xcaff closed 7 years ago

0xcaff commented 7 years ago

If you do:

fmt.Println(color.RedString("%"))

This is printed (in red):

%!(NOVERB)

This should be printed (in red):

%

The wrong output is displayed even when color.NoColor is set to true.

fatih commented 7 years ago

Hi @caffinatedmonkey

This was fixed with #40 , do you use an older version? Please fetch latest master and try again. Thanks.