Versions in this module Expand all Collapse all v0 v0.2.0 Nov 15, 2026 v0.1.0 Nov 13, 2026 Changes in this version + type Event struct + Added bool + Detail string + Kind string + func Diff(old, cur Snapshot) []Event + type Group struct + Hub string + Serials []Serial + Sounds []Sound + type Serial struct + ByID string + Hub string + Interface int + Manufacturer string + PID string + Product string + SerialNumber string + Tty string + VID string + func (s Serial) Describe() string + func (s Serial) Identity() string + func (s Serial) LooksLikeGPS() bool + func (s Serial) USBID() string + type Snapshot struct + Serials []Serial + Sounds []Sound + func Scan(sysfsRoot, devRoot string) (Snapshot, error) + func (s Snapshot) Groups() []Group + type Sound struct + Card int + Hub string + ID string + PID string + Product string + SerialNumber string + VID string + func (s Sound) Describe() string + func (s Sound) Identity() string + func (s Sound) USBID() string