Compare commits

..
2 Commits
Author SHA1 Message Date
dudaodong ee0afed963 Merge branch 'v2' into rc 2024-09-16 09:10:23 +08:00
KydenandGitHub 1d94896c9b fix(strutil): rename PadStart to Pad. (#245) 2024-09-15 20:29:12 +08:00
+1 -1
View File
@@ -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 {