Documentation
¶
Index ¶
- Variables
- type Atom
- type Context
- func (ctx *Context) Eval(code string, evaltype int) (Value, error)
- func (ctx *Context) EvalFile(code string, evaltype int, filename string) (Value, error)
- func (ctx *Context) Exception() error
- func (ctx *Context) Free()
- func (ctx *Context) Function(fn Function) Value
- func (ctx *Context) Globals() *Value
- func (ctx *Context) Int64(v int64) Value
- func (ctx *Context) Null() Value
- type Error
- type Function
- type JsInterface
- type JsThread
- type ObjectId
- type Runtime
- type Value
- func (v Value) BigFloat() *big.Float
- func (v Value) BigInt() *big.Int
- func (v Value) Bool() bool
- func (v Value) Context() *Context
- func (v Value) Error() error
- func (v Value) Float64() float64
- func (v Value) Free()
- func (v Value) Get(name string) Value
- func (v Value) GetByAtom(atom Atom) Value
- func (v Value) GetByUint32(idx uint32) Value
- func (v Value) Int32() int32
- func (v Value) Int64() int64
- func (v Value) IsArray() bool
- func (v Value) IsBigDecimal() bool
- func (v Value) IsBigFloat() bool
- func (v Value) IsBigInt() bool
- func (v Value) IsBool() bool
- func (v Value) IsConstructor() bool
- func (v Value) IsError() bool
- func (v Value) IsException() bool
- func (v Value) IsFunction() bool
- func (v Value) IsNull() bool
- func (v Value) IsNumber() bool
- func (v Value) IsObject() bool
- func (v Value) IsString() bool
- func (v Value) IsSymbol() bool
- func (v Value) IsUndefined() bool
- func (v Value) IsUninitialized() bool
- func (v Value) Len() int64
- func (v Value) Set(name string, val Value)
- func (v Value) SetByAtom(atom Atom, val Value)
- func (v Value) SetByInt64(idx int64, val Value)
- func (v Value) SetByUint32(idx uint32, val Value)
- func (v Value) SetFunction(name string, fn Function)
- func (v Value) String() string
- func (v Value) Uint32() uint32
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EVAL_GLOBAL int = int(C.JS_EVAL_TYPE_GLOBAL) EVAL_MODULE int = int(C.JS_EVAL_TYPE_MODULE) EVAL_STRICT int = int(C.JS_EVAL_FLAG_STRICT) EVAL_STRIP int = int(C.JS_EVAL_FLAG_STRIP) )
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
type JsInterface ¶
type JsThread ¶
func NewJsThread ¶
func NewJsThread(Interface JsInterface) *JsThread
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func NewRuntime ¶
func NewRuntime() *Runtime
func (*Runtime) NewContext ¶
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func (Value) GetByUint32 ¶
func (Value) IsBigDecimal ¶
func (Value) IsBigFloat ¶
func (Value) IsConstructor ¶
func (Value) IsException ¶
func (Value) IsFunction ¶
func (Value) IsUndefined ¶
func (Value) IsUninitialized ¶
func (Value) SetByInt64 ¶
func (Value) SetByUint32 ¶
func (Value) SetFunction ¶
Click to show internal directories.
Click to hide internal directories.