strings.ContainsAny
Reports whether the given string contains any character within the given set.
- Syntax
- strings.ContainsAny STRING SET
- Returns
- bool
{{ strings.ContainsAny "Hugo" "gm" }} → trueThe check is case sensitive:
{{ strings.ContainsAny "Hugo" "Gm" }} → falseLast updated:
October 10, 2026
:
theme: Migrate aliases to a redirects data file (b732eba6c)
Improve this page