(r *bufio.Reader)
| 15 | ) |
| 16 | |
| 17 | func readLine(r *bufio.Reader) (string, error) { |
| 18 | line, err := r.ReadString('\n') |
| 19 | if err != nil { |
| 20 | return "", err |
| 21 | } |
| 22 | if len(line) < 3 { |
| 23 | return "", ErrProtocol |
| 24 | } |
| 25 | return line, nil |
| 26 | } |
| 27 | |
| 28 | // Read an array, with all elements are the raw redis commands |
| 29 | // Also reads sets and maps. |
no outgoing calls
no test coverage detected