gjs

package
v0.72.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JsFunctions []GJsBasics

Functions

func CallJsFunc

func CallJsFunc(funcName string, funcParams interface{}) interface{}

for testing

func CallJsFuncs

func CallJsFuncs(funcName string, funcParams interface{}) interface{}

for testing

func InitJsFunctions

func InitJsFunctions(jsFileList []string)

trial code for js

func RunProgram

func RunProgram(p *goja.Program, funcParams interface{}) interface{}

Types

type GJsBasics

type GJsBasics struct {
	JsSourceFilePath   string
	JsSourceFileName   string
	JsFunctionName     string
	JsFunctionInParams interface{}
	JsFunctionOut      interface{}
	JsProgram          *goja.Program
}

mvp, one js file has only one function

Jump to

Keyboard shortcuts

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