Documentation ¶
Index ¶
- func Alias(aliasName string, modName string)
- func ExportForDev() string
- func FindPath(vm *goja.Runtime, filename string) string
- func GetFunc(v goja.Value) goja.Callable
- func GetLogger(vm *goja.Runtime) *log.Logger
- func Register(name string, mod Module)
- func Run(code string, refFile string, args ...any) (any, error)
- func RunFile(file string, args ...any) (any, error)
- func RunProgram(plg *Program, args ...any) (any, error)
- type Arr
- func (args *Arr) Any(index int) any
- func (args *Arr) Arr(index int) *Arr
- func (args *Arr) Array(startIndex int) []any
- func (args *Arr) Bool(index int) bool
- func (args *Arr) Bytes(index int) []byte
- func (args *Arr) Check(num int) *Arr
- func (args *Arr) Func(index int) goja.Callable
- func (args *Arr) Int(index int) int
- func (args *Arr) Int64(index int) int64
- func (args *Arr) Map(index int) map[string]any
- func (args *Arr) Map2Array(index int) []any
- func (args *Arr) Map2StrArray(index int) []string
- func (args *Arr) Obj(index int) *Obj
- func (args *Arr) Object(index int) *goja.Object
- func (args *Arr) Path(index int) string
- func (args *Arr) Str(index int) string
- func (args *Arr) StrArray(startIndex int) []string
- func (args *Arr) ThisObj() *Obj
- type LB
- type LBConfig
- type Map
- type Module
- type Obj
- func (obj *Obj) Any(name string) any
- func (obj *Obj) Arr(name string) *Arr
- func (obj *Obj) Array(name string) []any
- func (obj *Obj) Bool(name string) bool
- func (obj *Obj) Bytes(name string) []byte
- func (obj *Obj) Func(name string) goja.Callable
- func (obj *Obj) Get(name string) goja.Value
- func (obj *Obj) Int(name string) int
- func (obj *Obj) Int64(name string) int64
- func (obj *Obj) Map(name string) map[string]any
- func (obj *Obj) Obj(name string) *goja.Object
- func (obj *Obj) Path(name string) string
- func (obj *Obj) Str(name string) string
- type Pool
- type PoolConfig
- type Program
- type Runtime
- func (rt *Runtime) GetCallStack() []string
- func (rt *Runtime) GetGoData(name string) any
- func (rt *Runtime) RunCode(code string) (any, error)
- func (rt *Runtime) RunFile(file string) (any, error)
- func (rt *Runtime) RunMain(args ...any) (any, error)
- func (rt *Runtime) RunProgram(prg *Program) (any, error)
- func (rt *Runtime) RunVM(callback func(vm *goja.Runtime) (any, error)) (any, error)
- func (rt *Runtime) Set(name string, value any) error
- func (rt *Runtime) SetGlobal(global Map) error
- func (rt *Runtime) SetGoData(name string, value any)
- func (rt *Runtime) SetModuleLoader(fn func(filename string) string)
- func (rt *Runtime) StartFromCode(code, refFile string) error
- func (rt *Runtime) StartFromFile(file string) error
- func (rt *Runtime) StartFromProgram(plg *Program) error
- type WatchRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Arr ¶
type LB ¶
type LB struct {
// contains filtered or unexported fields
}
type Map ¶
type Module ¶
type Obj ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) RunVM ¶
func (*Runtime) SetModuleLoader ¶
type WatchRunner ¶
type WatchRunner struct {
// contains filtered or unexported fields
}
func WatchRun ¶
func WatchRun(file string, extDirs, extTypes []string, args ...any) (*WatchRunner, error)
func (*WatchRunner) Stop ¶
func (wr *WatchRunner) Stop()
func (*WatchRunner) WaitForKill ¶
func (wr *WatchRunner) WaitForKill()
Directories ¶
Path | Synopsis |
---|---|
Package base64dec contains a universal base64 decoder that works on both the standard and url-safe variants, padded and raw.
|
Package base64dec contains a universal base64 decoder that works on both the standard and url-safe variants, padded and raw. |
client
module
|
|
console
module
|
|
db
module
|
|
file
module
|
|
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
|
|
http
module
|
|
log
module
|
|
office
module
|
|
redis
module
|
|
service
module
|
|
util
module
|
Click to show internal directories.
Click to hide internal directories.