Back to Hugo

strings.TrimLeft

docs/content/en/functions/strings/TrimLeft.md

0.161.1259 B
Original Source
go-html-template
{{ strings.TrimLeft "a" "abba" }} → bba

The strings.TrimLeft function converts the arguments to strings if possible:

go-html-template
{{ strings.TrimLeft 21 12345 }} → 345 (string)
{{ strings.TrimLeft "rt" true }} → ue