mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 08:40:09 -04:00
17 lines
364 B
Markdown
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
|
|
```
|