strings.Contains
Reports whether the given string contains the given substring.
- Syntax
- strings.Contains STRING SUBSTRING
- Returns
- bool
{{ strings.Contains "Hugo" "go" }} → trueThe check is case sensitive:
{{ strings.Contains "Hugo" "Go" }} → falseLast updated:
October 10, 2026
:
theme: Migrate aliases to a redirects data file (b732eba6c)
Improve this page