HUGO
News Docs Themes Community GitHub

strings.Trim

Returns the given string, removing leading and trailing characters specified in the cutset.

Syntax

strings.Trim INPUT CUTSET

Returns

string

Alias

trim
{{ trim "++foo--" "+-" }} → foo

Last updated: January 1, 0001
Improve this page