From ce0f40c125ff838d332c1974c8e505e4be1e409b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 16 Nov 2017 10:08:15 -0500 Subject: more --- textproto/io.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'textproto') 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 -- cgit v1.2.3