zirconium-go/core/module.go
2020-02-12 20:39:57 +04:00

18 lines
229 B
Go

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