HUGO
Menu
GitHub 86675 stars Mastodon

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--" "+-" }} → foo

Last updated: January 1, 0001
Improve this page