1
0
Fork 0
hugo/docs/content/en/functions/strings/ContainsAny.md

23 lines
490 B
Markdown

---
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
```