aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/content/en/functions/strings.Contains.md
blob: 44cb73b8143f6dc4b9fb0a79640dbb8fb73ee287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
title: strings.Contains
description: Reports whether a string contains a substring.
categories: [functions]
menu:
  docs:
    parent: functions
keywords: [string strings substring contains]
signature: ["strings.Contains STRING SUBSTRING"]
relatedfuncs: [strings.ContainsAny]
---

    {{ strings.Contains "Hugo" "go" }} → true

The check is case sensitive: 

    {{ strings.Contains "Hugo" "Go" }} → false