Documentation ¶
Index ¶
- func CallFunc(vm *otto.Otto, method string, timeout time.Duration, params ...interface{}) (value otto.Value, err error)
- func Execute(vm *otto.Otto, script string, timeout time.Duration) (value otto.Value, err error)
- func LoadScript(vm *otto.Otto, script string, timeout time.Duration) (err error)
- type Callback
- type Function
- type JsEngine
- type ParamStruct
- type ParamType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Callback ¶
type Callback func(name string, params ...ParamStruct) any
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
func (*Function) GetParam ¶
func (f *Function) GetParam(i int) *ParamStruct
type JsEngine ¶
type ParamStruct ¶
type ParamStruct struct { Type ParamType // contains filtered or unexported fields }
func (*ParamStruct) Value ¶
func (p *ParamStruct) Value(ptr any)
Click to show internal directories.
Click to hide internal directories.