PeekReader is an io.Reader that also implements Peek a la bufio.Reader.
| 69 | |
| 70 | // PeekReader is an io.Reader that also implements Peek a la bufio.Reader. |
| 71 | type PeekReader interface { |
| 72 | io.Reader |
| 73 | Peek(n int) ([]byte, error) |
| 74 | } |
| 75 | |
| 76 | // IntoPeekReader creates a PeekReader from an io.Reader. |
| 77 | // If the reader already has a Peek method, it will just return the passed reader. |
no outgoing calls
no test coverage detected
searching dependent graphs…