eval

package
v0.0.0-...-fa2a900 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CelEval

func CelEval(exp []byte, input []byte) (string, error)

func Eval

func Eval(exp string, input map[string]any) (string, error)

Eval evaluates the cel expression against the given input

Types

type EvalResponse

type EvalResponse struct {
	Result any     `json:"result"`
	Cost   *uint64 `json:"cost, omitempty"`
}

Jump to

Keyboard shortcuts

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