Repeat Substring

Creates a new string consisting of a substring repeated a certain number of times.

Examples Filter
package main

import (
	"fmt"
	"strings"
)

func main() {
	fmt.Println("ba" + strings.Repeat("na", 2))
}