Documentation ¶
Index ¶
- func EvaluateArray[ReturnType any](ctx context.Context, logger kitlog.Logger, source string, subject any) ([]ReturnType, error)
- func EvaluateJavascript(ctx context.Context, logger kitlog.Logger, source string, subject any) (result otto.Value, err error)
- func EvaluateResultType[ReturnType any](ctx context.Context, logger kitlog.Logger, source string, result otto.Value) (*ReturnType, error)
- func EvaluateSingleValue[ReturnType any](ctx context.Context, logger kitlog.Logger, source string, subject any) (*ReturnType, error)
- func SafelyGo(do func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvaluateArray ¶
func EvaluateJavascript ¶
func EvaluateJavascript(ctx context.Context, logger kitlog.Logger, source string, subject any) (result otto.Value, err error)
EvaluateJavascript can evaluate a source Javascript program having set the given subject into the `$` variable.
func EvaluateResultType ¶
func EvaluateSingleValue ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.