From a11cc2cb8989273db626351b3819c53cc9809f10 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 6 May 2024 23:25:25 -0400 Subject: [PATCH] Rename registry to registrar --- application.go | 4 ++-- internal/registrar/doc.go | 2 ++ .../registry_unix.go => registrar/registrar_unix.go} | 2 +- internal/registry/doc.go | 2 -- 4 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 internal/registrar/doc.go rename internal/{registry/registry_unix.go => registrar/registrar_unix.go} (94%) delete mode 100644 internal/registry/doc.go diff --git a/application.go b/application.go index ccf205a..d583542 100644 --- a/application.go +++ b/application.go @@ -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() diff --git a/internal/registrar/doc.go b/internal/registrar/doc.go new file mode 100644 index 0000000..8288ee2 --- /dev/null +++ b/internal/registrar/doc.go @@ -0,0 +1,2 @@ +// Package registrar provides platform-dependent components at compile time. +package registrar diff --git a/internal/registry/registry_unix.go b/internal/registrar/registrar_unix.go similarity index 94% rename from internal/registry/registry_unix.go rename to internal/registrar/registrar_unix.go index d9b0449..d2b2beb 100644 --- a/internal/registry/registry_unix.go +++ b/internal/registrar/registrar_unix.go @@ -1,5 +1,5 @@ //go:build unix && (!darwin) -package registry +package registrar import "git.tebibyte.media/tomo/x" import "git.tebibyte.media/tomo/tomo" diff --git a/internal/registry/doc.go b/internal/registry/doc.go deleted file mode 100644 index 97bff0c..0000000 --- a/internal/registry/doc.go +++ /dev/null @@ -1,2 +0,0 @@ -// Package registry provides platform-dependent components at compile time. -package registry