RuneCount.md - hugo - [fork] hugo port for 9front
(HTM) git clone https://git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
RuneCount.md (536B)
---
1 ---
2 title: strings.RuneCount
3 description: Returns the number of runes in the given string.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 aliases: []
9 returnType: int
10 signatures: [strings.RuneCount INPUT]
11 aliases: [/functions/strings.runecount]
12 ---
13
14 In contrast with the [`strings.CountRunes`] function, which excludes whitespace, `strings.RuneCount` counts every rune in a string.
15
16 ```go-html-template
17 {{ "Hello, δΈη" | strings.RuneCount }} β 9
18 ```
19
20 [`strings.CountRunes`]: /functions/strings/countrunes/