Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime is a wrapper for goja.Runtime.
func NewRuntime ¶
NewRuntime creates new Runtime instance. Don't forget to close it after usage.
func (*Runtime) Events ¶
Events returns channel with events. Channel reading is required for the events working.
type RuntimeOption ¶
type RuntimeOption func(*Runtime)
RuntimeOption allows to set up some internal Runtime properties from outside.
func WithPrinter ¶
func WithPrinter(p printer.Printer) RuntimeOption
WithPrinter sets up the printer for the runtime.
Click to show internal directories.
Click to hide internal directories.