Documentation
¶
Index ¶
- func ExportForDev() (string, error)
- func Init()
- func InitFrom(filePath string)
- func Run(code string, refFile string, args ...any) (any, error)
- func RunFile(file string, args ...any) (any, error)
- func SetSSKey(key, iv []byte)
- type Exports
- type Runtime
- func (rt *Runtime) GetCallStack() []string
- func (rt *Runtime) RunCode(code string) (any, error)
- func (rt *Runtime) RunMain(args ...any) (any, error)
- func (rt *Runtime) SetModuleLoader(fn func(filename string) string)
- func (rt *Runtime) StartFromCode(code, refFile string) (any, error)
- func (rt *Runtime) StartFromFile(file string) (any, error)
- type WatchRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportForDev ¶ added in v0.0.3
Types ¶
type Runtime ¶ added in v0.0.3
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) GetCallStack ¶ added in v0.0.3
func (*Runtime) SetModuleLoader ¶ added in v0.0.3
func (*Runtime) StartFromCode ¶ added in v0.0.3
type WatchRunner ¶ added in v0.0.5
type WatchRunner struct {
// contains filtered or unexported fields
}
func WatchRun ¶ added in v0.0.5
func WatchRun(file string, extDirs, extTypes []string, args ...any) (*WatchRunner, error)
func (*WatchRunner) Stop ¶ added in v0.0.5
func (wr *WatchRunner) Stop()
func (*WatchRunner) WaitForKill ¶ added in v0.0.5
func (wr *WatchRunner) WaitForKill()
Directories
¶
Path | Synopsis |
---|---|
ast
Package ast declares types representing a JavaScript AST.
|
Package ast declares types representing a JavaScript AST. |
file
Package file encapsulates the file abstractions used by the ast & parser.
|
Package file encapsulates the file abstractions used by the ast & parser. |
ftoa
Package ftoa provides ECMAScript-compliant floating point number conversion to string.
|
Package ftoa provides ECMAScript-compliant floating point number conversion to string. |
ftoa/internal/fast
Package fast contains code ported from V8 (https://github.com/v8/v8/blob/master/src/numbers/fast-dtoa.cc)
|
Package fast contains code ported from V8 (https://github.com/v8/v8/blob/master/src/numbers/fast-dtoa.cc) |
parser
Package parser implements a parser for JavaScript.
|
Package parser implements a parser for JavaScript. |
token
Package token defines constants representing the lexical tokens of JavaScript (ECMA5).
|
Package token defines constants representing the lexical tokens of JavaScript (ECMA5). |
unistring
Package unistring contains an implementation of a hybrid ASCII/UTF-16 string.
|
Package unistring contains an implementation of a hybrid ASCII/UTF-16 string. |
goja_nodejs
|
|
interface
|
|
llm
|
|
Click to show internal directories.
Click to hide internal directories.