From 1d94896c9bba8380ad5c9dc21167be4c6e2bc5ad Mon Sep 17 00:00:00 2001 From: Kyden Date: Sun, 15 Sep 2024 20:29:12 +0800 Subject: [PATCH] fix(strutil): rename PadStart to Pad. (#245) --- strutil/string.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strutil/string.go b/strutil/string.go index b1d1b7e..a8eb6c6 100644 --- a/strutil/string.go +++ b/strutil/string.go @@ -75,7 +75,7 @@ func LowerFirst(s string) string { return string(r) + s[size:] } -// PadStart pads string on the left and right side if it's shorter than size. +// Pad pads string on the left and right side if it's shorter than size. // Padding characters are truncated if they exceed size. // Play: https://go.dev/play/p/NzImQq-VF8q func Pad(source string, size int, padStr string) string {