hugo/docs/content/en/functions/strings.Repeat.md
2023-05-22 16:47:07 +02:00

16 lines
327 B
Markdown

---
title: strings.Repeat
description: Returns INPUT repeated COUNT times.
categories: [functions]
menu:
docs:
parent: functions
keywords: [strings]
signature: ["strings.Repeat COUNT INPUT"]
relatedfuncs: []
---
```go-html-template
{{ strings.Repeat 3 "yo" }} → "yoyoyo"
{{ "yo" | strings.Repeat 3 }} → "yoyoyo"
```