diff options
Diffstat (limited to 'cmd.go')
-rw-r--r-- | cmd.go | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,14 +1,15 @@ package libfastimport -import ( - "git.lukeshu.com/go/libfastimport/textproto" -) - type fiReader interface { PeekLine() (string, error) ReadLine() (string, error) } +type fiWriter interface { + WriteData(string) error + WriteLine(a ...interface{}) error +} + type cmdClass int const ( @@ -20,6 +21,6 @@ const ( type Cmd interface { fiCmdRead(fiReader) (Cmd, error) - fiCmdWrite(*textproto.FIWriter) error + fiCmdWrite(fiWriter) error fiCmdClass() cmdClass } |