js

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Script

type Script struct {
	Name    string
	Content string
}

Script Represents JavaScript code, need to be named for stacktrace purposes.

func (*Script) EvalJSON

func (s *Script) EvalJSON(result interface{}, fnCall string, args ...interface{}) error

EvalJSON evaluates the script content and call `fnCall` the return value will be JSON-stringified and unmarshaled back to `obj` with `json.Unmarshal`

Jump to

Keyboard shortcuts

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