removed debug print

This commit is contained in:
Timon Ringwald 2022-08-25 17:06:18 +02:00
parent 708c1e5d7a
commit 5949bf193f

View File

@ -1,7 +1,6 @@
package tprint package tprint
import ( import (
"fmt"
"strings" "strings"
"unicode" "unicode"
) )
@ -54,6 +53,5 @@ func padStringLeft(str string, pad rune, length int) string {
func padStringCenter(str string, pad rune, length int) string { func padStringCenter(str string, pad rune, length int) string {
l := strLen(str) l := strLen(str)
fmt.Println(l, length)
return padStringLeft(padStringRight(str, pad, (length-l)/2+l), pad, length) return padStringLeft(padStringRight(str, pad, (length-l)/2+l), pad, length)
} }