diff options
-rw-r--r-- | lib/b64.go | 15 | ||||
-rw-r--r-- | lib/str.go | 15 |
2 files changed, 15 insertions, 15 deletions
@@ -64,18 +64,3 @@ func index(c byte) uint32 { } return uint32(0) } - -// Strip space and newline characters from string. -func stripSpaceChars(s string) string { - ss := "" - for i := 0; i < len(s); i++ { - if s[i] == ' ' { - continue - } - if s[i] == '\n' { - continue - } - ss += string(s[i]) - } - return ss -} @@ -13,3 +13,18 @@ func FillStr(a string, l int) string { } return b } + +// Strip space and newline characters from string. +func stripSpaceChars(s string) string { + ss := "" + for i := 0; i < len(s); i++ { + if s[i] == ' ' { + continue + } + if s[i] == '\n' { + continue + } + ss += string(s[i]) + } + return ss +} |