summaryrefslogtreecommitdiff
path: root/ezfiw.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-11-22 22:04:14 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-11-22 22:13:31 -0500
commit3efa1fc8a98d2d90c204c7bd5a0e2519e1ac7745 (patch)
treefb78c0b98d24be8d1985af1187f0202c052363d1 /ezfiw.go
parentf13250e6a926640c4d0ee858f84fcf8036d612aa (diff)
split the parser up, and have read methods like write emethods
Diffstat (limited to 'ezfiw.go')
-rw-r--r--ezfiw.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/ezfiw.go b/ezfiw.go
deleted file mode 100644
index 2cc01b6..0000000
--- a/ezfiw.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package libfastimport
-
-import (
- "strconv"
-
- "git.lukeshu.com/go/libfastimport/textproto"
-)
-
-type ezfiw struct {
- fiw *textproto.FIWriter
- err error
-}
-
-func (e *ezfiw) WriteLine(a ...interface{}) {
- if e.err == nil {
- e.err = e.fiw.WriteLine(a...)
- }
-}
-
-func (e *ezfiw) WriteData(data string) {
- if e.err == nil {
- e.err = e.fiw.WriteData(data)
- }
-}
-
-func (e *ezfiw) WriteMark(idnum int) {
- if e.err == nil {
- e.err = e.fiw.WriteLine("mark", ":"+strconv.Itoa(idnum))
- }
-}