10 lines
139 B
Go
10 lines
139 B
Go
package device
|
|
|
|
type WriteableDevice interface {
|
|
Write(data []byte) (int, error)
|
|
}
|
|
|
|
type PrinterDevice struct {
|
|
Device WriteableDevice
|
|
}
|