GoFrame gstr-字符串创建
2022-04-11 15:27 更新
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
}以上内容是否对您有帮助:

免费 AI IDE


更多建议: