mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
19 lines
427 B
Markdown
19 lines
427 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"]
|
||
|
aliases: []
|
||
|
relatedfuncs: [strings.ContainsAny]
|
||
|
---
|
||
|
|
||
|
{{ strings.Contains "Hugo" "go" }} → true
|
||
|
|
||
|
The check is case sensitive:
|
||
|
|
||
|
{{ strings.Contains "Hugo" "Go" }} → false
|