mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-04 09:31:46 +03:00
16 lines
367 B
Markdown
16 lines
367 B
Markdown
---
|
|
title: strings.Trim
|
|
description: Returns the given string, removing leading and trailing characters specified in the cutset.
|
|
categories: []
|
|
keywords: []
|
|
params:
|
|
functions_and_methods:
|
|
aliases: [trim]
|
|
returnType: string
|
|
signatures: [strings.Trim INPUT CUTSET]
|
|
aliases: [/functions/trim]
|
|
---
|
|
|
|
```go-html-template
|
|
{{ trim "++foo--" "+-" }} → foo
|
|
```
|