You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To handle such cases, implement a set of functions that can return
formattable objects outside color/ package.
To begin with, I might propose the following:
Implement a set of functions similar to Sprint, Sprintf, Sprintln.
And another set of functions similar to SprintFunc, SprintfFunc SprintlnFunc
that returns an object implementing fmt.Formatter{} interface.
If it make sense, I can do a draft implementation and raise a pull request.
Thanks,
The text was updated successfully, but these errors were encountered:
Right now, if we are going to use Sprint, Sprintf, Sprintln outputs and
perform further formatting on the returned string as:
it may not give the correct padding.
To handle such cases, implement a set of functions that can return
formattable objects outside
color/
package.To begin with, I might propose the following:
Implement a set of functions similar to Sprint, Sprintf, Sprintln.
And another set of functions similar to SprintFunc, SprintfFunc SprintlnFunc
that returns an object implementing
fmt.Formatter{}
interface.If it make sense, I can do a draft implementation and raise a pull request.
Thanks,
The text was updated successfully, but these errors were encountered: