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:
December 4, 2023
:
Squashed 'docs/' changes from 4d936aee6..4dd2d6415 (35dec7c96)
Improve this page