diff options
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:] +} |