diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-11-16 10:08:15 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-11-16 10:08:15 -0500 |
commit | ce0f40c125ff838d332c1974c8e505e4be1e409b (patch) | |
tree | f78a992881f07421ae9cc5afc259ca5527614df1 /textproto | |
parent | efc7a5ebc9e10983571c080017100a8b39eee1d0 (diff) |
more
Diffstat (limited to 'textproto')
-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 |