strings.CountWords
Returns the number of words in the given string.
Syntax
strings.CountWords INPUT
Returns
int
Alias
countwords
{{ "Hugo is a static site generator." | countwords }} → 6
Last updated:
December 4, 2023
:
Squashed 'docs/' changes from 4d936aee6..4dd2d6415 (35dec7c96)
Improve this page