Rename registry to registrar

This commit is contained in:
Sasha Koshka 2024-05-06 23:25:25 -04:00
parent f59949c3bb
commit a11cc2cb89
4 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ package nasin
import "log"
import "image"
import "git.tebibyte.media/tomo/tomo"
import "git.tebibyte.media/tomo/nasin/internal/registry"
import "git.tebibyte.media/tomo/nasin/internal/registrar"
// Application represents an application object.
type Application interface {
@ -79,7 +79,7 @@ type ApplicationRole string; const (
// RunApplication is like tomo.Run, but runs an application. If something fails
// to initialize, an error is written to the standard logger.
func RunApplication (application Application) {
err := registry.Init()
err := registrar.Init()
if err != nil { log.Fatal("nasin: could not init registry:", err) }
err = tomo.Run(func () {
err := application.Init()

View File

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

View File

@ -1,5 +1,5 @@
//go:build unix && (!darwin)
package registry
package registrar
import "git.tebibyte.media/tomo/x"
import "git.tebibyte.media/tomo/tomo"

View File

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