strings.HasSuffix
Reports whether the given string ends with the given suffix.
- Syntax
- strings.HasSuffix STRING SUFFIX
- Returns
- bool
- Alias
- hasSuffix
{{ hasSuffix "Hugo" "go" }} → trueLast updated:
October 10, 2026
:
theme: Migrate aliases to a redirects data file (b732eba6c)
Improve this page