This commit is contained in:
Mike Schwörer 2022-12-14 18:25:07 +01:00
parent 3a9c3f4e9e
commit c42324c58f
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -107,3 +107,11 @@ func NumToStringOpt[V IntConstraint](v *V, fallback string) string {
return fmt.Sprintf("%d", v) return fmt.Sprintf("%d", v)
} }
} }
func StrRepeat(val string, count int) string {
r := ""
for i := 0; i < count; i++ {
r += val
}
return r
}