interpreter

package
v0.0.0-...-1b17b00 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvalInterpreter

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

func NewEvalInterpreter

func NewEvalInterpreter(sourceScript string, opts ...Option) (*EvalInterpreter, error)

NewEvalInterpreter create new EvalInterpreter

func (*EvalInterpreter) ExecuteScript

func (ev *EvalInterpreter) ExecuteScript(f func(executor any)) (err error)

ExecuteScript execute script by responseBody and sourceScript script must be have only one function with name Check script function must return string script function parameter must be map[string]any

type Option

type Option func(*option)

func WithFuncName

func WithFuncName(name string) Option

Jump to

Keyboard shortcuts

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