Debian Codegraph @

docs/content/en/functions/strings/HasSuffix.md

raw
1 ---
2 title: strings.HasSuffix
3 description: Reports whether the given string ends with the given suffix.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 aliases: [hasSuffix]
9 returnType: bool
10 signatures: [strings.HasSuffix STRING SUFFIX]
11 aliases: [/functions/hassuffix,/functions/strings/hassuffix]
12 ---
13
14 ```go-html-template
15 {{ hasSuffix "Hugo" "go" }} → true
16 ```