Files

20 lines
249 B
Go

package ezcoo
import "sync"
type State [2]int
type Device struct {
cfg Config
cmds chan string
mu sync.RWMutex
current State
}
func NewDevice(cfg Config) *Device {
return &Device{
cfg: cfg,
cmds: make(chan string, 8),
}
}