diff options
author | Runxi Yu <me@runxiyu.org> | 2024-12-07 21:13:28 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-12-07 21:13:28 +0800 |
commit | 8c18330aa3976aa981bbe4f135960a92b5923fb6 (patch) | |
tree | 6b1548fce387c3d86f110732f971d85f64990c9a /util.go | |
download | meseircd-8c18330aa3976aa981bbe4f135960a92b5923fb6.tar.gz meseircd-8c18330aa3976aa981bbe4f135960a92b5923fb6.tar.zst meseircd-8c18330aa3976aa981bbe4f135960a92b5923fb6.zip |
Initial commit
Diffstat (limited to 'util.go')
-rw-r--r-- | util.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -0,0 +1,8 @@ +package main + +func trimInitialSpaces(line string) string { + var i int + for i = 0; i < len(line) && line[i] == ' '; i++ { + } + return line[i:] +} |