diff --git a/export.go b/writeto.go similarity index 98% rename from export.go rename to writeto.go index e238171..1d73319 100644 --- a/export.go +++ b/writeto.go @@ -9,7 +9,7 @@ import ( "time" ) -// WriteTo implements io.WriterTo. +// WriteTo implements io.WriterTo. It dumps the whole message into w. func (msg *Message) WriteTo(w io.Writer) (int64, error) { mw := &messageWriter{w: w} mw.writeMessage(msg)