-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to clear colored string? #150
Comments
You can create an individual color variable and do it on a per-color variable:
Or you can disable it globally with |
Sorry, maybe I made a mistake, redText := color.RedString("color text")
fmt.Println(redText) // want to no color |
At the same time, output the log in the terminal and the file. I want the terminal to output colors, the file has no color characters. Register an interceptor in the log frame. How can I clear the colored string?
The text was updated successfully, but these errors were encountered: