package iteration const repeatTime = 5 // Repeat takes a string and repeat it 5 times func Repeat(s string) string { var res string for i := 0; i < repeatTime; i++ { res += s } return res }