summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/strings/Contains.md
blob: e0e3b087c6a657da39bdd4aeb290be05e6aff45a (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.Contains
description: Reports whether the given string contains the given substring.
categories: []
keywords: []
params:
  functions_and_methods:
    aliases: []
    returnType: bool
    signatures: [strings.Contains STRING SUBSTRING]
aliases: [/functions/strings.contains]
---

```go-html-template
{{ strings.Contains "Hugo" "go" }} → true
```

The check is case sensitive:

```go-html-template
{{ strings.Contains "Hugo" "Go" }} → false
```