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: Support non-string parameter #10

Merged
merged 1 commit into from Nov 21, 2022
Merged

feat: Support non-string parameter #10

merged 1 commit into from Nov 21, 2022

Conversation

TwiN
Copy link
Owner

@TwiN TwiN commented Nov 21, 2022

Summary

With this, it will now be possible to skip type conversion when passing a parameter to go-color.

Before:

// Because functions took a string as parameter, you 
// first had to convert the parameter to a string.
println(color.InRed(strconv.Itoa(123)))

After:

println(color.InRed(123))

Checklist

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

@TwiN TwiN merged commit 26d628b into master Nov 21, 2022
@TwiN TwiN deleted the feat/any-param branch November 21, 2022 04:16
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