strings.Repeat
Returns a new string consisting of zero or more copies of another string.
Syntax
strings.Repeat COUNT STRING
Returns
string
{{ strings.Repeat 3 "yo" }} → yoyoyoLast updated:
December 19, 2025
:
Merge commit '08e1ea5c709d3d49bdc3ce3c21e8fa05a33150d0' (7e1a08e54)
Improve this page