Documentation
¶
Index ¶
- Constants
- Variables
- func ContextWithInputs(ctx context.Context, inputs ...interface{}) context.Context
- func InputsFromContext(ctx context.Context) []interface{}
- func ResolveArg(ctx context.Context, arg interface{}) (interface{}, error)
- func ResolveArgs(ctx context.Context, args ...interface{}) ([]interface{}, error)
- func StringifyArgs(args []interface{}) string
- func StringifyExpression(expression Expression) string
- func StringifyValue(val interface{}) string
- type Abs
- type Add
- type All
- type Any
- type Case
- type Coalesce
- type Div
- type Eq
- type ExecFunc
- type Expr
- type Expression
- type Factory
- type Gt
- type Gte
- type In
- type Lt
- type Lte
- type Match
- type Mod
- type Mul
- type Neq
- type Not
- type Pow
- type Sub
- type WithLitArg
Constants ¶
View Source
const LITERAL_EXPRESSION = "literal"
Variables ¶
View Source
var DefaultFactory = Factory{}
Functions ¶
func ContextWithInputs ¶
func InputsFromContext ¶
func ResolveArg ¶
func ResolveArgs ¶
func StringifyArgs ¶
func StringifyArgs(args []interface{}) string
func StringifyExpression ¶
func StringifyExpression(expression Expression) string
func StringifyValue ¶
func StringifyValue(val interface{}) string
Types ¶
type Case ¶
type Case struct{}
Case
Syntax
["case", condition: boolean, output: OutputType, condition: boolean, output: OutputType, ..., fallback: OutputType ]: OutputType
type Coalesce ¶
type Coalesce struct{}
Coalesce
Evaluates each expression in turn until the first non-null value is obtained, and returns that value.
Syntax
["coalesce", OutputType, OutputType, ...]: OutputType
type Expression ¶
type Expression = []interface{}
type WithLitArg ¶
type WithLitArg interface {
LitArg() bool
}
Click to show internal directories.
Click to hide internal directories.