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:
October 10, 2026
:
theme: Migrate aliases to a redirects data file (b732eba6c)
Improve this page