mirror of
https://github.com/foomo/posh.git
synced 2026-07-01 15:10:03 +00:00
11 lines
176 B
Go
11 lines
176 B
Go
package strings
|
|
|
|
import (
|
|
"math"
|
|
"strings"
|
|
)
|
|
|
|
func PadEnd(s, suffix string, count int) string {
|
|
return s + strings.Repeat(suffix, int(math.Max(0, float64(count-len(s)))))
|
|
}
|