strings.CountWords
strings.CountWords
Returns the number of words in the given string.
{{
"Hugo is a static site generator."
|
countwords
}}
→ 6