(s string)
| 26 | } |
| 27 | |
| 28 | func splitChars(s string) [][]byte { |
| 29 | chars := make([][]byte, 0, len(s)) |
| 30 | // Assume ASCII inputs |
| 31 | for i := 0; i != len(s); i++ { |
| 32 | chars = append(chars, []byte{s[i]}) |
| 33 | } |
| 34 | return chars |
| 35 | } |
| 36 | |
| 37 | func stringsToBytes(in ...string) (out [][]byte) { |
| 38 | out = make([][]byte, len(in)) |
no outgoing calls
no test coverage detected