HUGO
Menu
GitHub 86675 stars Mastodon

strings.Contains

Reports whether the given string contains the given substring.

Syntax

strings.Contains STRING SUBSTRING

Returns

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

The check is case sensitive:

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

Last updated: January 1, 0001
Improve this page