Docs Functions strings strings.Repeatstrings.RepeatReturns a new string consisting of zero or more copies of another string.Syntaxstrings.Repeat COUNT STRINGReturnsstring{{ strings.Repeat 3 "yo" }} → yoyoyoLast updated: January 1, 0001Improve this page