code: func StreamTo(buffers [][]*rfc5424.Message, msgc <-chan *rfc5424.Message, w io.Writer) error {
  	enc := gob.NewEncoder(w)
  	if err := writeTo(buffers, enc); err != nil {
  		return err
  	}
  
  	for msg := range msgc {
  		if err := enc.Encode(msg); err != nil {
  			return err
  		}
  	}
  	return nil
  }
docs: // StreamTo writes a snapshot of the buffers to the writer, then writes
  // messages from the channel to the writer. The writer is left open.