hugo/docs/content/en/functions/strings.Contains.md
2022-12-02 09:19:23 +01:00

427 B

title description categories menu keywords signature aliases 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