21
0
Fork 0
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
1 changed files with 8 additions and 0 deletions

View File

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