Documentation ¶
Index ¶
- func ExitContext(c *capi.CV8contextT) error
- type Context
- func (c Context) Alertf(message string, v ...interface{}) (err error)
- func (c Context) Eval(code string) (v Value, err error)
- func (c Context) GetBrowser() *capi.CBrowserT
- func (c Context) GetElementById(id string) (value Value, err error)
- func (c Context) GetElementsByClassName(cls string) (elements Value, err error)
- func (c Context) GetFrame() *capi.CFrameT
- func (c Context) IsSame(c1 Context) bool
- func (c Context) IsValid() bool
- func (c Context) NewArray(elems ...Value) Value
- type EventHandlerFunc
- type EventType
- type Function
- type HandlerFunction
- type Value
- func CreateBool(b bool) (v Value)
- func CreateInt(i int) Value
- func CreateString(s string) Value
- func CreateStringFromByteArray(b []byte) Value
- func NewFunction(name string, f capi.CV8handlerTExecuteHandler) Value
- func NewObject() Value
- func NewString(s string) Value
- func NewValue(v8v *capi.CV8valueT) Value
- func (v Value) AddEventListener(e EventType, h capi.CV8handlerTExecuteHandler) (err error)
- func (v Value) Call(name string, args []Value) (r Value, e error)
- func (v Value) CapiValue() *capi.CV8valueT
- func (v Value) ClearException() bool
- func (v Value) DeleteValueByindex(index int, value Value) (err error)
- func (v Value) DeleteValueBykey(key string, value Value) (err error)
- func (f Value) ExecuteFunction(this Value, args []Value) (r Value, e error)
- func (f Value) ExecuteFunctionWithContext(context Context, this Value, args []Value) (r Value, e error)
- func (v Value) GetBoolValue() bool
- func (v Value) GetDateValue() capi.CTimeT
- func (v Value) GetDoubleValue() float64
- func (v Value) GetException() *capi.CV8exceptionT
- func (v Value) GetIntValue() int
- func (v Value) GetStringValue() string
- func (v Value) GetUintValue() uint
- func (v Value) GetValueByindex(index int) (rv Value, err error)
- func (v Value) GetValueBykey(key string) (rv Value, err error)
- func (v Value) HasException() bool
- func (v Value) HasOneRef() bool
- func (v Value) HasValueBykey(key string) bool
- func (v Value) IsArray() bool
- func (v Value) IsArrayBuffer() bool
- func (v Value) IsBool() bool
- func (v Value) IsDate() bool
- func (v Value) IsDouble() bool
- func (v Value) IsFunction() bool
- func (v Value) IsInt() bool
- func (v Value) IsNil() bool
- func (v Value) IsNull() bool
- func (v Value) IsObject() bool
- func (v Value) IsSame(v1 Value) bool
- func (v Value) IsString() bool
- func (v Value) IsUndefined() bool
- func (v Value) IsUnt() bool
- func (v Value) IsValid() bool
- func (v Value) SetValueByindex(index int, value Value) (err error)
- func (v Value) SetValueBykey(key string, value Value) (err error)
- func (v Value) SetValueBykeyWithAttribute(key string, value Value, attribute capi.CV8PropertyattributeT) (err error)
- func (v Value) ToString() (s string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitContext ¶
func ExitContext(c *capi.CV8contextT) error
Types ¶
type Context ¶
type Context struct { V8context *capi.CV8contextT Global Value Document Value }
func EnterContext ¶
func EnterContext(c *capi.CV8contextT) (ctx Context, err error)
func GetCurrentContext ¶ added in v0.3.6
func GetV8Context ¶ added in v0.3.6
func GetV8Context(v8c *capi.CV8contextT) (c Context, err error)
func (Context) GetBrowser ¶
func (Context) GetElementsByClassName ¶
type EventHandlerFunc ¶
type HandlerFunction ¶
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func CreateBool ¶ added in v0.3.5
func CreateString ¶
func NewFunction ¶
func NewFunction(name string, f capi.CV8handlerTExecuteHandler) Value
func (Value) AddEventListener ¶
func (v Value) AddEventListener(e EventType, h capi.CV8handlerTExecuteHandler) (err error)
func (Value) ClearException ¶
func (Value) DeleteValueByindex ¶
func (Value) DeleteValueBykey ¶
func (Value) ExecuteFunction ¶
func (Value) ExecuteFunctionWithContext ¶ added in v0.2.3
func (Value) GetBoolValue ¶
func (Value) GetDateValue ¶
func (Value) GetDoubleValue ¶
func (Value) GetException ¶
func (v Value) GetException() *capi.CV8exceptionT
func (Value) GetIntValue ¶
func (Value) GetStringValue ¶
func (Value) GetUintValue ¶
func (Value) HasException ¶
func (Value) HasValueBykey ¶
func (Value) IsArrayBuffer ¶
func (Value) IsFunction ¶
func (Value) IsUndefined ¶
func (Value) SetValueBykeyWithAttribute ¶ added in v0.3.5
Click to show internal directories.
Click to hide internal directories.