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:
December 4, 2023
:
Squashed 'docs/' changes from 4d936aee6..4dd2d6415 (35dec7c96)
Improve this page