diff options
Diffstat (limited to 'textproto/io.go')
-rw-r--r-- | textproto/io.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/textproto/io.go b/textproto/io.go index af2cb19..cb0105b 100644 --- a/textproto/io.go +++ b/textproto/io.go @@ -131,6 +131,12 @@ type CatBlobWriter struct { w io.Writer } +func NewCatBlobWriter(w io.Writer) *CatBlobWriter { + return &CatBlobWriter { + w: w, + } +} + func (cbw *CatBlobWriter) WriteLine(a ...interface{}) error { _, err := fmt.Fprintln(cbw.w, a...) return err |