strings.TrimRight
Returns the given string, removing trailing characters specified in the cutset.
- Syntax
- strings.TrimRight CUTSET STRING
- Returns
- string
{{ strings.TrimRight "a" "abba" }} → abbThe strings.TrimRight function converts the arguments to strings if possible:
{{ strings.TrimRight 54 12345 }} → 123 (string)
{{ strings.TrimRight "eu" true }} → trLast updated:
April 10, 2025
:
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65' (283e97783)
Improve this page