hugo/docs/content/en/functions/strings.Contains.md
2023-05-22 16:47:07 +02:00

17 lines
413 B
Markdown

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