Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 427 Bytes
package vim
import "io"
// NewReadWriter returns simple io.ReadWriter.
// bufio.ReadWriter has buffers and needs to be flushed., so we cannot use
// bufio.NewReadWriter() for Vim client which accept io.ReadWriter.
// ref:!topic/golang-nuts/OJnnwlfsPCc
func NewReadWriter(r io.Reader, w io.Writer) io.ReadWriter {
return &readWriter{r, w}
type readWriter struct {