TrimLeft.md - hugo - [fork] hugo port for 9front
(HTM) git clone https://git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
TrimLeft.md (573B)
---
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 ```