Documentation
¶
Index ¶
- func GetContent(url string) (string, error)
- type Cacher
- type Console
- type FSCacher
- type ImportMap
- type JSModule
- type Module
- type ModuleCache
- type Object
- type Require
- type Runtime
- func (r *Runtime) AddImportMap(m ImportMap)
- func (r *Runtime) ClearImportMap()
- func (r *Runtime) RunFile(filename string) (Value, error)
- func (r *Runtime) RunScript(name, src string) (Value, error)
- func (r *Runtime) RunString(str string) (Value, error)
- func (r *Runtime) Transform(src string) (string, error)
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContent ¶
Types ¶
type Module ¶ added in v1.0.4
type Module struct { Exports *Object // contains filtered or unexported fields }
type ModuleCache ¶ added in v1.0.1
type Runtime ¶
type Runtime struct { *goja.Runtime UseBabel bool UseTypeScript bool ImportMap //require *Require TransformCacher Cacher ContentCacher Cacher }
func (*Runtime) AddImportMap ¶
func (*Runtime) ClearImportMap ¶
func (r *Runtime) ClearImportMap()
Click to show internal directories.
Click to hide internal directories.