Closed ghost closed 7 years ago
@fatih I need this as well, any chance of getting merged to master? This PR also also allows for threadsafe usage; right now the Output is shared across all threads so it can't be made threadsafe.
Hi @kataras
Thanks for the PR, I didn't had much time to look at it. I just had a chance to review and there was a couple of things missing so I went and implemented them myself as the.
Not all Fprint style functions were implemented and it was not correct, as it was still using c.Set()
and c.unset()
which would use a different writer than c.Fprint
. I've fixed with this PR: https://github.com/fatih/color/pull/52 thanks for the feedback though, much appreciated.
io.Writer
&color.Output
Fprintf
andFprintfFunc
They have many usages, it's a must-featureThanks, kataras