strings.Repeat

将以下英文翻译为中文:

strings.Repeat

https://gohugo.io/functions/strings.repeat/

Returns INPUT repeated COUNT times.

语法

strings.Repeat COUNT INPUT
{{ strings.Repeat 3 "yo" }} → "yoyoyo"
{{ "yo" | strings.Repeat 3 }} → "yoyoyo"

另请参阅