summaryrefslogtreecommitdiff
path: root/textproto
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-11-16 10:08:15 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-11-16 10:08:15 -0500
commitce0f40c125ff838d332c1974c8e505e4be1e409b (patch)
treef78a992881f07421ae9cc5afc259ca5527614df1 /textproto
parentefc7a5ebc9e10983571c080017100a8b39eee1d0 (diff)
more
Diffstat (limited to 'textproto')
-rw-r--r--textproto/io.go6
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