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:
March 5, 2025
:
content: Remove "related" array from function and method pages (2fcd21ee5)
Improve this page