code: func NewSyncBuffer() *SyncBuffer {
  	reader, writer := io.Pipe()
  	buf := &bytes.Buffer{}
  	go func() {
  		io.Copy(buf, reader)
  	}()
  	return &SyncBuffer{
  		reader: reader,
  		writer: writer,
  		buf:    buf,
  	}
  }
docs: // NewSyncBuffer returns new in memory buffer