strings.Trim
Returns the given string, removing leading and trailing characters specified in the cutset.
- Syntax
- strings.Trim STRING CUTSET
- Returns
- string
- Alias
- trim
Usage
The strings.Trim function returns the given string, removing leading and trailing characters specified in the cutset.
Examples
{{ strings.Trim "++foo--" "+-" }} → fooLast updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page