Debian Codegraph @

docs/content/en/functions/strings/Contains.md

raw
1 ---
2 title: strings.Contains
3 description: Reports whether the given string contains the given substring.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 aliases: []
9 returnType: bool
10 signatures: [strings.Contains STRING SUBSTRING]
11 aliases: [/functions/strings.contains]
12 ---
13
14 ```go-html-template
15 {{ strings.Contains "Hugo" "go" }} → true
16 ```
17
18 The check is case sensitive:
19
20 ```go-html-template
21 {{ strings.Contains "Hugo" "Go" }} → false
22 ```