zirconium-go/core/module.go

18 lines
229 B
Go
Raw Normal View History

package core
const (
ModuleInterfaceName = "Module"
)
type Module interface {
Initialize(moduleAPI *ModuleManager)
Name() string
Version() string
}
type ModuleRef struct {
F func() Module
}
type ModuleFunc func() Module