mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
16 lines
361 B
Markdown
16 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
|
|
```
|