DocsFunctionsstringsstrings.Repeatstrings.RepeatReturns a new string consisting of zero or more copies of another string.Syntaxstrings.Repeat COUNT INPUTReturnsstring{{ strings.Repeat 3 "yo" }} → yoyoyoLast updated: March 8, 2025 : content: More front matter cleanup (c933ea237)Improve this page