Debian Codegraph @

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

raw
1 ---
2 title: strings.TrimLeft
3 description: Returns the given string, removing leading characters specified in the cutset.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 aliases: []
9 returnType: string
10 signatures: [strings.TrimLeft CUTSET STRING]
11 aliases: [/functions/strings.trimleft]
12 ---
13
14 ```go-html-template
15 {{ strings.TrimLeft "a" "abba" }} → bba
16 ```
17
18 The `strings.TrimLeft` function converts the arguments to strings if possible:
19
20 ```go-html-template
21 {{ strings.TrimLeft 21 12345 }} → 345 (string)
22 {{ strings.TrimLeft "rt" true }} → ue
23 ```