hugo/docs/content/en/functions/strings.HasSuffix.md
2023-05-22 16:47:07 +02:00

17 lines
361 B
Markdown

---
title: strings.HasSuffix
description: Tests whether a string ends with suffix.
categories: [functions]
menu:
docs:
parent: functions
keywords: [strings]
signature: ["hasSuffix STRING SUFFIX","strings.HasSuffix STRING SUFFIX"]
relatedfuncs: [hasPrefix]
aliases: [/functions/hassuffix/]
---
```go-html-template
{{ hasSuffix "Hugo" "go" }} → true
```