strings.Contains
Reports whether the given string contains the given substring.
- Syntax
- strings.Contains STRING SUBSTRING
- Returns
- bool
Usage
The strings.Contains function reports whether the given string contains the given substring. The check is case-sensitive.
Examples
{{ strings.Contains "Hugo" "go" }} → true
{{ strings.Contains "Hugo" "Go" }} → falseLast updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page