strings.TrimLeft
Returns the given string, removing leading characters specified in the cutset.
Syntax
strings.TrimLeft CUTSET STRING
Returns
string
{{ strings.TrimLeft "a" "abba" }} → bbaThe strings.TrimLeft function converts the arguments to strings if possible:
{{ strings.TrimLeft 21 12345 }} → 345 (string)
{{ strings.TrimLeft "rt" true }} → ueLast updated:
April 10, 2025
:
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65' (283e97783)
Improve this page