aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--device.go8
-rw-r--r--usb.go5
2 files changed, 8 insertions, 5 deletions
diff --git a/device.go b/device.go
new file mode 100644
index 0000000..ea8c416
--- /dev/null
+++ b/device.go
@@ -0,0 +1,8 @@
+package main
+
+import "bufio"
+
+type Devicer interface {
+ Close()
+ Handle() *bufio.ReadWriter
+}
diff --git a/usb.go b/usb.go
index 660ca29..7aa75c2 100644
--- a/usb.go
+++ b/usb.go
@@ -8,11 +8,6 @@ import (
"github.com/kylelemons/gousb/usb"
)
-type Devicer interface {
- Close()
- Handle() *bufio.ReadWriter
-}
-
type USB struct {
ctx *usb.Context
dev *usb.Device