Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) SetRegistery ¶ added in v0.3.0
func (e *Engine) SetRegistery(mr ModuleRegistery) *Engine
type FuncModule ¶ added in v0.2.0
func (FuncModule) Copy ¶ added in v0.2.0
func (fm FuncModule) Copy() Module
func (FuncModule) Require ¶ added in v0.2.0
func (fm FuncModule) Require() (any, error)
type Module ¶
func JSModule ¶ added in v0.3.0
func JSModule(src io.Reader, registery ...ModuleRegistery) (Module, error)
func ValueModule ¶ added in v0.2.0
type ModuleRegistery ¶ added in v0.2.0
type ModuleRegistery interface { Register(name string, mod Module) Copy() ModuleRegistery Require(name string) (any, error) }
func NewRegistery ¶ added in v0.3.0
func NewRegistery(defaultRequire ...func(name string) (any, error)) ModuleRegistery
Click to show internal directories.
Click to hide internal directories.