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

413 B

title description categories menu keywords signature relatedfuncs
strings.Contains Reports whether a string contains a substring.
functions
docs
parent
functions
string strings substring contains
strings.Contains STRING SUBSTRING
strings.ContainsAny
{{ strings.Contains "Hugo" "go" }} → true

The check is case sensitive:

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