Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCode ¶
func GenerateCode(options GenerateOptions) (code string, err error)
Types ¶
type GenerateOptions ¶
type GojaModule ¶
type GojaModule struct {
// contains filtered or unexported fields
}
func (*GojaModule) Enable ¶
func (p *GojaModule) Enable(runtime Runtime)
func (*GojaModule) Name ¶
func (p *GojaModule) Name() string
func (*GojaModule) Register ¶
func (p *GojaModule) Register() Module
func (*GojaModule) Require ¶
func (p *GojaModule) Require(runtime *goja.Runtime, module *goja.Object)
func (*GojaModule) Set ¶
func (p *GojaModule) Set(objects Objects) Module
func (*GojaModule) String ¶
func (p *GojaModule) String() string
type Module ¶
type Module interface { Name() string Set(objects Objects) Module Enable(Runtime) Register() Module }
func NewGojaModule ¶
func NewOttoModule ¶
type OttoModule ¶
type OttoModule struct {
// contains filtered or unexported fields
}
func (*OttoModule) Enable ¶
func (p *OttoModule) Enable(runtime Runtime)
func (*OttoModule) Name ¶
func (p *OttoModule) Name() string
func (*OttoModule) Register ¶
func (p *OttoModule) Register() Module
func (*OttoModule) Set ¶
func (p *OttoModule) Set(objects Objects) Module
func (*OttoModule) String ¶
func (p *OttoModule) String() string
Click to show internal directories.
Click to hide internal directories.