--- title: strings.HasSuffix description: Reports whether a string ends with suffix. categories: [functions] keywords: [] menu: docs: parent: functions function: aliases: [hasSuffix] returnType: bool signatures: [strings.HasSuffix STRING SUFFIX] relatedFunctions: - strings.Contains - strings.ContainsAny - strings.ContainsNonSpace - strings.HasPrefix - strings.HasSuffix aliases: [/functions/hassuffix,/functions/strings/hassuffix] --- ```go-html-template {{ hasSuffix "Hugo" "go" }} → true ```