Documentation
¶
Overview ¶
Package javascript provides the javascript runtime for the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileScript ¶
func CompileScript(name, script string) (*goja.Program, error)
Types ¶
type Log ¶
type Log struct {
// Logger is the LoggerImpl to forward log messages to.
Logger logger.LoggerImpl
// Prefix is the prefix to prepend to log messages.
Prefix string
// ProgressChan is a channel that receives float64s indicating the current progress of an operation.
ProgressChan chan float64
}
Log provides log wrappers for usable from the JS VM.
type ObjectValueDef ¶
type ObjectValueDef struct {
Name string
Value interface{}
}
Click to show internal directories.
Click to hide internal directories.