Versions in this module Expand all Collapse all v0 v0.0.2 Jan 19, 2018 Changes in this version + var IllegalModuleNameError = errors.New("Illegal module name") + var InvalidModuleError = errors.New("Invalid module") + func RegisterNativeModule(name string, loader ModuleLoader) + func Require(runtime *js.Runtime, name string) js.Value + type ModuleLoader func(*js.Runtime, *js.Object) + type Registry struct + func NewRegistryWithLoader(srcLoader SourceLoader) *Registry + func (r *Registry) Enable(runtime *js.Runtime) *RequireModule + type RequireModule struct + func (r *RequireModule) Require(p string) (ret js.Value, err error) + type SourceLoader func(path string) ([]byte, error)