strings.Repeat
Returns the given string repeated the given number of times.
- Syntax
- strings.Repeat COUNT STRING
- Returns
- string
{{ strings.Repeat 3 "yo" }} → yoyoyoLast updated:
September 11, 2026
:
content: Comply with function/method description guidance in style guide (76fa3fc9e)
Improve this page