hugo/docs/content/en/functions/strings/HasSuffix.md
2023-10-20 09:43:56 +02:00

24 lines
521 B
Markdown

---
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
```