strings.HasSuffix

将以下英文翻译为中文:

strings.HasSuffix

https://gohugo.io/functions/strings.hassuffix/

Tests whether a string ends with suffix.

语法

hasSuffix STRING SUFFIX
strings.HasSuffix STRING SUFFIX
{{ hasSuffix "Hugo" "go" }} → true

另请参阅