mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
23 lines
430 B
Markdown
23 lines
430 B
Markdown
---
|
|
title: strings.Repeat
|
|
# linktitle:
|
|
description: Returns INPUT repeated COUNT times.
|
|
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"
|
|
```
|