strings.Trim

strings.Trim


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

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