Files
hugo/docs/content/en/functions/strings/CountWords.md
T
2025-12-19 10:07:30 +01:00

17 lines
365 B
Markdown

---
title: strings.CountWords
description: Returns the number of words in the given string.
categories: []
keywords: []
params:
functions_and_methods:
aliases: [countwords]
returnType: int
signatures: [strings.CountWords STRING]
aliases: [/functions/countwords]
---
```go-html-template
{{ "Hugo is a static site generator." | countwords }} → 6
```