summaryrefslogtreecommitdiffstats
path: root/content/en/functions/strings.Repeat.md
blob: 3ad4626fb160428fdeb187f7db94e9ae1335704e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
title: strings.Repeat
# linktitle:
description: Returns INPUT repeated COUNT times.
godocref:
date: 2018-05-31
publishdate: 2018-05-31
lastmod: 2018-05-31
categories: [functions]
menu:
  docs:
    parent: "functions"
keywords: [strings]
signature: ["strings.Repeat COUNT INPUT"]
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
---

```
{{ strings.Repeat 3 "yo" }} → "yoyoyo"
{{ "yo" | strings.Repeat 3 }} → "yoyoyo"
```