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:
December 4, 2023
:
Squashed 'docs/' changes from 4d936aee6..4dd2d6415 (35dec7c96)
Improve this page