RosettaCodeData/Task/Repeat-a-string/Go/repeat-a-string-1.go

2 lines
64 B
Go

fmt.Println(strings.Repeat("ha", 5)) // ==> "hahahahaha"