tpl: Add strings.Repeat

This commit is contained in:
David E. Wheeler authored and Bjørn Erik Pedersen committed 2018-06-03 09:55:37 +03:00
1 parent a6b9f654a2
commit 828ea5f15c
2 files changed
+45

No files matched your search

+14
View File
@@ -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": [