How to print char n times, like in C#?

Thanks for the idea. So I found:

import "strings"
str1 := "*“
str2:=”@"
fmt.Println(strings.Repeat(str1,2) + strings.Repeat(str2,3)) //result **@@@

1 Like