HUGO
News Docs Themes Community GitHub

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: January 1, 0001
Improve this page