Skip to content
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

feat: Add automatic formatting and coloring function "Autof" #12

Merged
merged 3 commits into from
Nov 21, 2022

Conversation

TwiN
Copy link
Owner

@TwiN TwiN commented Nov 21, 2022

Summary

Replacement for fmt.Sprintf, but each argument is colored:

color.Autof("%s sent %s$%.02f to %s", "John", "USD", 123.4, "Jane")

image

This is an experimental feature and may be removed depending on user feedback.

Checklist

  • Tested and/or added tests to validate that the changes work as intended, if applicable.
  • Added the documentation in README.md, if applicable.

Sorry, something went wrong.

@TwiN TwiN merged commit 40f32d5 into master Nov 21, 2022
@TwiN TwiN deleted the feat/autof branch November 21, 2022 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant