mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
21 lines
445 B
Markdown
21 lines
445 B
Markdown
|
|
---
|
||
|
|
title: strings.Repeat
|
||
|
|
description: Returns a new string consisting of zero or more copies of another string.
|
||
|
|
categories: [functions]
|
||
|
|
keywords: []
|
||
|
|
menu:
|
||
|
|
docs:
|
||
|
|
parent: functions
|
||
|
|
function:
|
||
|
|
aliases: []
|
||
|
|
returnType: string
|
||
|
|
signatures: [strings.Repeat COUNT INPUT]
|
||
|
|
relatedFunctions: []
|
||
|
|
aliases: [/functions/strings.repeat]
|
||
|
|
---
|
||
|
|
|
||
|
|
```go-html-template
|
||
|
|
{{ strings.Repeat 3 "yo" }} → "yoyoyo"
|
||
|
|
{{ "yo" | strings.Repeat 3 }} → "yoyoyo"
|
||
|
|
```
|