chelnak / ysmrr

YSMRR is a package that provides simple multi-line compatible spinners for Go applications.
MIT License
71 stars 6 forks source link

Add UpdateMessagef() method #42

Closed chelnak closed 1 year ago

chelnak commented 1 year ago

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.