js

package
v0.0.0-...-a89011a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GojaJsEngine

type GojaJsEngine struct {
	// contains filtered or unexported fields
}

GojaJsEngine goja js引擎

func NewGojaJsEngine

func NewGojaJsEngine(config types.Config, jsScript string, vars map[string]interface{}) *GojaJsEngine

NewGojaJsEngine 创建一个新的js引擎实例

func (*GojaJsEngine) Execute

func (g *GojaJsEngine) Execute(functionName string, argumentList ...interface{}) (out interface{}, err error)

func (*GojaJsEngine) Stop

func (g *GojaJsEngine) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL