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

Add UpdateMessagef() method #42

Merged
merged 1 commit into from
Sep 1, 2022
Merged

Add UpdateMessagef() method #42

merged 1 commit into from
Sep 1, 2022

Conversation

chelnak
Copy link
Owner

@chelnak chelnak commented Sep 1, 2022

Prior to this PR it was not possible to pass a formatted string to update the message of a spinner. The consumer would have to assign the result of fmt.Sprintf() to a variable and then pass it as a parameter to UpdateMessage().

This PR adds the UpdateMessagef() method so that consumers can update spinner messages with a formatted string.

Prior to this commit it was not possible to pass a formatted string to
update the message of a spinner. The consumer would have to assign the
result of fmt.Sprintf() to a variable and then pass it as a parameter to
UpdateMessage().

This commit adds the UpdateMessagef() method so that consumers can
update spinner messages with a formatted string.
@chelnak chelnak added the enhancement New feature or request label Sep 1, 2022
@chelnak chelnak self-assigned this Sep 1, 2022
@chelnak chelnak linked an issue Sep 1, 2022 that may be closed by this pull request
@chelnak chelnak merged commit 242aa18 into main Sep 1, 2022
@chelnak chelnak deleted the format_update_message branch September 1, 2022 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add UpdateMessagef() method
1 participant