-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add render function to avoid Go formatter in text
There were multiple issues where Go formatter strings (`%s`) in input text lead to undesirable output. Add `render` function to handle all color functions with a simple check whether the output string needs to be created using the formatting or not.
- Loading branch information
1 parent
ace250f
commit 82058b9
Showing
1 changed file
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters