Rename registry to registrar
This commit is contained in:
parent
f59949c3bb
commit
a11cc2cb89
@ -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()
|
||||
|
2
internal/registrar/doc.go
Normal file
2
internal/registrar/doc.go
Normal file
@ -0,0 +1,2 @@
|
||||
// Package registrar provides platform-dependent components at compile time.
|
||||
package registrar
|
@ -1,5 +1,5 @@
|
||||
//go:build unix && (!darwin)
|
||||
package registry
|
||||
package registrar
|
||||
|
||||
import "git.tebibyte.media/tomo/x"
|
||||
import "git.tebibyte.media/tomo/tomo"
|
@ -1,2 +0,0 @@
|
||||
// Package registry provides platform-dependent components at compile time.
|
||||
package registry
|
Loading…
Reference in New Issue
Block a user