HUGO
News Docs Themes Community GitHub

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: January 1, 0001
Improve this page