API to convert text to ascii color but not print
ORESoftware opened this issue · 2 comments
ORESoftware commented
I didn't expect this to print the text:
color.Cyan("Prints text in cyan.")
instead I am looking for an API that does this:
log.Println(color.Cyan("text in cyan"))
where can I find this API?
MarvinJWendt commented
I think this is what you want: https://github.com/fatih/color#insert-into-noncolor-strings-sprintfunc
ORESoftware commented
thanks yeah this worked for me: https://github.com/logrusorgru/aurora