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