bufio.Reader as ring buffer