2025-04-10 13:04:51 +02:00

17 lines
364 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 INPUT]
aliases: [/functions/countwords]
---
```go-html-template
{{ "Hugo is a static site generator." | countwords }} → 6
```