Implement missing bits in result listing

This commit is contained in:
Arturo Filastò 2018-06-22 11:53:10 +02:00
commit 703b260903
5 changed files with 86 additions and 10 deletions

View file

@ -0,0 +1,10 @@
package cli
import (
"strings"
"unicode/utf8"
)
func RightPad(str string, length int) string {
return str + strings.Repeat(" ", length-utf8.RuneCountInString(str))
}