hugo/docs/content/en/functions/strings/ContainsAny.md
2025-04-10 13:04:51 +02:00

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