Backend registering is platform-dependent

This commit is contained in:
2024-05-03 12:46:09 -04:00
parent 2eb82d9035
commit 7c7d93d6d1
3 changed files with 15 additions and 5 deletions

2
internal/registry/doc.go Normal file
View File

@@ -0,0 +1,2 @@
// Package registry provides platform-dependent components at compile time.
package registry

View File

@@ -0,0 +1,10 @@
//go:build unix && (!darwin)
package registry
import "git.tebibyte.media/tomo/x"
import "git.tebibyte.media/tomo/tomo"
func Init () error {
tomo.Register(1, x.NewBackend)
return nil
}