strings.CountWords
Returns the number of words in the given string.
- Syntax
- strings.CountWords STRING
- Returns
- int
- Alias
- countwords
{{ "Hugo is a static site generator." | countwords }} → 6Last updated:
October 10, 2026
:
theme: Migrate aliases to a redirects data file (b732eba6c)
Improve this page