ReplyArray replies an array
(w io.Writer, size int)
| 38 | |
| 39 | // ReplyArray replies an array |
| 40 | func ReplyArray(w io.Writer, size int) (*Encoder, error) { |
| 41 | r := NewEncoder(w) |
| 42 | if err := r.Array(size); err != nil { |
| 43 | return nil, err |
| 44 | } |
| 45 | return r, nil |
| 46 | } |
| 47 | |
| 48 | // ReadError reads an error |
| 49 | func ReadError(r io.Reader) (string, error) { |
no test coverage detected