Renamed export.go into writeto.go
This commit is contained in:
parent
4f6286485b
commit
ac067c1594
|
@ -9,7 +9,7 @@ import (
|
||||||
"time"
|
"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) {
|
func (msg *Message) WriteTo(w io.Writer) (int64, error) {
|
||||||
mw := &messageWriter{w: w}
|
mw := &messageWriter{w: w}
|
||||||
mw.writeMessage(msg)
|
mw.writeMessage(msg)
|
Loading…
Reference in New Issue