gstr_create.go 468 B

1234567891011121314
  1. // Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
  2. //
  3. // This Source Code Form is subject to the terms of the MIT License.
  4. // If a copy of the MIT was not distributed with this file,
  5. // You can obtain one at https://github.com/gogf/gf.
  6. package gstr
  7. import "strings"
  8. // Repeat returns a new string consisting of multiplier copies of the string input.
  9. func Repeat(input string, multiplier int) string {
  10. return strings.Repeat(input, multiplier)
  11. }