diff options
author | David E. Wheeler <david@justatheory.com> | 2018-06-03 02:55:37 -0400 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-06-03 09:55:37 +0300 |
commit | 13435a6f608306c5094fdcd72a1d9538727f91b2 (patch) | |
tree | f452078c55bfe6d326d866f9aaaebf338d560cec /docs/data | |
parent | 07b96d16e8679c40e289c9076ef4414ed6eb7f81 (diff) |
tpl: Add strings.Repeat
Diffstat (limited to 'docs/data')
-rw-r--r-- | docs/data/docs.json | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/data/docs.json b/docs/data/docs.json index 2a7f727b7..4eddf8eae 100644 --- a/docs/data/docs.json +++ b/docs/data/docs.json @@ -3410,6 +3410,20 @@ ] ] }, + "Repeat": { + "Description": "Repeat returns a new string consisting of count copies of the string s.", + "Args": [ + "s", + "n" + ], + "Aliases": null, + "Examples": [ + [ + "{{ \"yo\" | strings.Repeat 4 }}", + "yoyoyoyo" + ] + ] + }, "Truncate": { "Description": "Truncate truncates a given string to the specified length.", "Args": [ |