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