strings.Trim
Returns the given string, removing leading and trailing characters specified in the cutset.
Syntax
strings.Trim STRING CUTSET
Returns
string
Alias
trim
{{ trim "++foo--" "+-" }} → fooLast updated:
December 19, 2025
:
Merge commit '08e1ea5c709d3d49bdc3ce3c21e8fa05a33150d0' (7e1a08e54)
Improve this page