strings.Repeat
Returns a new string consisting of zero or more copies of another string.
Syntax
strings.Repeat COUNT INPUT
Returns
string
{{ strings.Repeat 3 "yo" }} → yoyoyo
Last updated:
March 5, 2025
:
content: Consolidate configuration documentation (b6cae5cbc)
Improve this page