Debian Codegraph @

docs/content/en/functions/strings/CountWords.md

raw
1 ---
2 title: strings.CountWords
3 description: Returns the number of words in the given string.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 aliases: [countwords]
9 returnType: int
10 signatures: [strings.CountWords STRING]
11 aliases: [/functions/countwords]
12 ---
13
14 ```go-html-template
15 {{ "Hugo is a static site generator." | countwords }} → 6
16 ```