package hardware import "errors" // Resource is a basic resource (like an input) or a device. type Resource interface { // String returns the human readable name of the resource. String() string // Halt stops the resource. Halt() error } // IsNotFound for resources that return a NotFound error. func IsNotFound(err error) bool { return errors.Is(err, PinNotFound{}) }