strings.HasSuffix
Reports whether the given string ends with the given suffix.
Syntax
strings.HasSuffix STRING SUFFIX
Returns
bool
Alias
hasSuffix
{{ hasSuffix "Hugo" "go" }} → true
Last updated:
March 5, 2025
:
content: Remove "related" array from function and method pages (2fcd21ee5)
Improve this page