diff options
Diffstat (limited to 'docs/content/en/functions/countrunes.md')
-rw-r--r-- | docs/content/en/functions/countrunes.md | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/docs/content/en/functions/countrunes.md b/docs/content/en/functions/countrunes.md index 01ded4d6f..0d89af857 100644 --- a/docs/content/en/functions/countrunes.md +++ b/docs/content/en/functions/countrunes.md @@ -1,26 +1,20 @@ --- title: countrunes description: Determines the number of runes in a string excluding any whitespace. -date: 2017-02-01 -publishdate: 2017-02-01 -lastmod: 2017-02-01 categories: [functions] menu: docs: - parent: "functions" + parent: functions keywords: [counting, word count] signature: - "countrunes INPUT" - "strings.CountRunes INPUT" -workson: [] -hugoversion: relatedfuncs: [] -deprecated: false --- In contrast with `countwords` function, which counts every word in a string, the `countrunes` function determines the number of runes in the content and excludes any whitespace. This has specific utility if you are dealing with CJK-like languages. -``` +```go-html-template {{ "Hello, 世界" | countrunes }} <!-- outputs a content length of 8 runes. --> ``` |