Checkpoint

This commit is contained in:
maze authored and maze committed 2026-10-29 17:28:51 +01:00
1 parent 7b6db17870
commit 0295eb1ad2
125 files changed
+59376

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
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{})
}