Codebase list golang-github-vbauerster-mpb / c776d72
FormatMsg method on WC value receiver Vladimir Bauer 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
136136
137137 // FormatMsg formats final message according to WC.W and WC.C.
138138 // Should be called by any Decorator implementation.
139 func (wc *WC) FormatMsg(msg string) string {
139 func (wc WC) FormatMsg(msg string) string {
140140 pureWidth := runewidth.StringWidth(msg)
141141 viewWidth := runewidth.StringWidth(stripansi.Strip(msg))
142142 max := wc.W