tpl/strings: strings.RuneCount

This commit is contained in:
David E. Wheeler authored and Bjørn Erik Pedersen committed 2018-06-04 20:47:03 +03:00
1 parent 828ea5f15c
commit 081f8a0f92
2 files changed
+47 -1

No files matched your search

+19 -1
View File
@@ -3146,7 +3146,25 @@
"Aliases": [
"countrunes"
],
"Examples": []
"Examples": [
[
"{{ \"Hello, 世界\" | countrunes }}",
"8"
]
]
},
"RuneCount": {
"Description": "RuneCount returns the number of runes in s",
"Args": [
"s"
],
"Aliases": [],
"Examples": [
[
"{{ \"Hello, 世界\" | strings.RuneCount }}",
"9"
]
]
},
"CountWords": {
"Description": "CountWords returns the approximate word count in s.",