removed debug print
This commit is contained in:
parent
708c1e5d7a
commit
5949bf193f
2
utils.go
2
utils.go
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user