conditionparser

package
v0.3.9-5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidOp      = errors.Error("invalid operation")
	ErrFieldNotFound  = errors.Error("field not found")
	ErrOutOfIndex     = errors.Error("out of index")
	ErrFuncArgument   = errors.Error("invalid function arguments")
	ErrMethodNotFound = errors.Error("method not found")
)

Functions

func EvalBool

func EvalBool(exprStr string, input interface{}) (bool, error)

func EvalString

func EvalString(exprStr string, input interface{}) (string, error)

func EvalTemplate

func EvalTemplate(template string, input interface{}) (string, error)

func IsTemplate

func IsTemplate(template string) bool

func IsValid

func IsValid(exprStr string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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