evaler

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expr

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

func Compile

func Compile(expr string) (*Expr, error)

func MustCompile

func MustCompile(expr string) *Expr

func (*Expr) Eval

func (expr *Expr) Eval(args Params) (float64, error)

func (Expr) MarshalText

func (expr Expr) MarshalText() ([]byte, error)

func (*Expr) String

func (expr *Expr) String() string

func (*Expr) UnmarshalText

func (expr *Expr) UnmarshalText(s []byte) error

func (*Expr) Validate added in v0.2.2

func (expr *Expr) Validate() error

type Params

type Params map[string]interface{}

Jump to

Keyboard shortcuts

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