Repeat
- 说明:
Repeat返回一个由input重复multiplier次后组成的新字符串。 - 格式:
Repeat(input string, multiplier int) string- 示例:
func ExampleRepeat() {
var (
input = `goframe `
multiplier = 3
result = gstr.Repeat(input, multiplier)
)
fmt.Println(result)
// Output:
// goframe goframe goframe
}作者:admin,如若转载,请注明出处:https://www.web176.com/goframe/20919.html
支付宝
微信