Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#241·color

Print string ended by symbol new line '\n'

Author: XxpronerCreated Oct 3, 2024Updated Oct 3, 2024

It would be usefull to print line ended by symbol new line '\n', color.New(...).SprintfFunc() creates obj that can color string, but if string ends by new line symbol there is double new line symbols. Thx

Source: fatih/color

View original on GitHubView discussion on GitHub