aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/content/en/functions/strings.ContainsAny.md
blob: 36fa8701be0efc2f94b1500603555babe8ccc062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
title: strings.ContainsAny
description: Reports whether a string contains any character from a given string.
categories: [functions]
menu:
  docs:
    parent: functions
keywords: [string strings substring contains any]
signature: ["strings.ContainsAny STRING CHARACTERS"]
relatedfuncs: [strings.Contains]
---

    {{ strings.ContainsAny "Hugo" "gm" }} → true

The check is case sensitive: 

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