HUGO
News Docs Themes Community GitHub

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" }} → true

The check is case sensitive:

{{ strings.ContainsAny "Hugo" "Gm" }} → false

Last updated: January 1, 0001
Improve this page