Skip to content

Commit f43897f

Browse files
committed
more idiomatic definition
1 parent a6cda14 commit f43897f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: arduino/monitors/types.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515

1616
package monitors
1717

18+
import (
19+
"io"
20+
)
21+
1822
// Monitor is the interface implemented by different device monitors
1923
type Monitor interface {
20-
Close() error
21-
Read(bytes []byte) (int, error)
22-
Write(bytes []byte) (int, error)
24+
io.ReadWriteCloser
2325
}

0 commit comments

Comments
 (0)