blob: 521ff34219ec07dca0b6d6ab92ac4e401ee706c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
title: strings.ContainsAny
description: Reports whether the given string contains any character within the given set.
categories: []
keywords: []
params:
functions_and_methods:
aliases: []
returnType: bool
signatures: [strings.ContainsAny STRING SET]
aliases: [/functions/strings.containsany]
---
```go-html-template
{{ strings.ContainsAny "Hugo" "gm" }} → true
```
The check is case sensitive:
```go-html-template
{{ strings.ContainsAny "Hugo" "Gm" }} → false
```
|