Documentation ¶
Index ¶
- func ParseFloat(name string, context *opt.FormulaContext, args ...*opt.LogicalExpression) (float64, error)
- type AbsFunction
- type AcosFunction
- type AndFunction
- type AsinFunction
- type AtanFunction
- type CbrtFunction
- type CeilFunction
- type ConcatFunction
- type CosFunction
- type DivideFunction
- type EqFunction
- type ExpFunction
- type FloorFunction
- type GeFunction
- type GreaterFunction
- type IIFFunction
- type IfsFunction
- type InFunction
- type LeFunction
- type LessFunction
- type LnFunction
- type Log10Function
- type Log2Function
- type LogFunction
- type LookupFunction
- type MaxFunction
- type MinFunction
- type ModFunction
- type MultiplyFunction
- type NeFunction
- type OrFunction
- type PlusFunction
- type PowerFunction
- type RoundFunction
- type ShiftLeftFunction
- type ShiftRightFunction
- type SignFunction
- type SinFunction
- type SqrtFunction
- type SubtractFunction
- type TanFunction
- type TruncateFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFloat ¶
func ParseFloat(name string, context *opt.FormulaContext, args ...*opt.LogicalExpression) (float64, error)
Types ¶
type AbsFunction ¶
type AbsFunction struct { }
func NewAbsFunction ¶
func NewAbsFunction() *AbsFunction
func (*AbsFunction) Evaluate ¶
func (f *AbsFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*AbsFunction) Name ¶
func (*AbsFunction) Name() string
type AcosFunction ¶
type AcosFunction struct { }
func NewAcosFunction ¶
func NewAcosFunction() *AcosFunction
func (*AcosFunction) Evaluate ¶
func (f *AcosFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*AcosFunction) Name ¶
func (*AcosFunction) Name() string
type AndFunction ¶
type AndFunction struct { }
func NewAndFunction ¶
func NewAndFunction() *AndFunction
func (*AndFunction) Evaluate ¶
func (f *AndFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*AndFunction) Name ¶
func (*AndFunction) Name() string
type AsinFunction ¶
type AsinFunction struct { }
func NewAsinFunction ¶
func NewAsinFunction() *AsinFunction
func (*AsinFunction) Evaluate ¶
func (f *AsinFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*AsinFunction) Name ¶
func (*AsinFunction) Name() string
type AtanFunction ¶
type AtanFunction struct { }
func NewAtanFunction ¶
func NewAtanFunction() *AtanFunction
func (*AtanFunction) Evaluate ¶
func (f *AtanFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*AtanFunction) Name ¶
func (*AtanFunction) Name() string
type CbrtFunction ¶
type CbrtFunction struct { }
func NewCbrtFunction ¶
func NewCbrtFunction() *CbrtFunction
func (*CbrtFunction) Evaluate ¶
func (f *CbrtFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*CbrtFunction) Name ¶
func (*CbrtFunction) Name() string
type CeilFunction ¶
type CeilFunction struct { }
func NewCeilFunction ¶
func NewCeilFunction() *CeilFunction
func (*CeilFunction) Evaluate ¶
func (f *CeilFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*CeilFunction) Name ¶
func (*CeilFunction) Name() string
type ConcatFunction ¶
type ConcatFunction struct { }
func NewConcatFunction ¶
func NewConcatFunction() *ConcatFunction
func (*ConcatFunction) Evaluate ¶
func (*ConcatFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*ConcatFunction) Name ¶
func (*ConcatFunction) Name() string
type CosFunction ¶
type CosFunction struct { }
func NewCosFunction ¶
func NewCosFunction() *CosFunction
func (*CosFunction) Evaluate ¶
func (f *CosFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*CosFunction) Name ¶
func (*CosFunction) Name() string
type DivideFunction ¶
type DivideFunction struct { }
func NewDivideFunction ¶
func NewDivideFunction() *DivideFunction
func (*DivideFunction) Evaluate ¶
func (f *DivideFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*DivideFunction) Name ¶
func (*DivideFunction) Name() string
type EqFunction ¶
type EqFunction struct { }
func NewEqFunction ¶
func NewEqFunction() *EqFunction
func (*EqFunction) Evaluate ¶
func (f *EqFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*EqFunction) Name ¶
func (*EqFunction) Name() string
type ExpFunction ¶
type ExpFunction struct { }
func NewExpFunction ¶
func NewExpFunction() *ExpFunction
func (*ExpFunction) Evaluate ¶
func (f *ExpFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*ExpFunction) Name ¶
func (*ExpFunction) Name() string
type FloorFunction ¶
type FloorFunction struct { }
func NewFloorFunction ¶
func NewFloorFunction() *FloorFunction
func (*FloorFunction) Evaluate ¶
func (f *FloorFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*FloorFunction) Name ¶
func (*FloorFunction) Name() string
type GeFunction ¶
type GeFunction struct { }
func NewGeFunction ¶
func NewGeFunction() *GeFunction
func (*GeFunction) Evaluate ¶
func (f *GeFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*GeFunction) Name ¶
func (*GeFunction) Name() string
type GreaterFunction ¶
type GreaterFunction struct { }
func NewGreaterFunction ¶
func NewGreaterFunction() *GreaterFunction
func (*GreaterFunction) Evaluate ¶
func (f *GreaterFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*GreaterFunction) Name ¶
func (*GreaterFunction) Name() string
type IIFFunction ¶
type IIFFunction struct { }
func NewIIFFunction ¶
func NewIIFFunction() *IIFFunction
func (*IIFFunction) Evaluate ¶
func (f *IIFFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*IIFFunction) Name ¶
func (*IIFFunction) Name() string
type IfsFunction ¶
type IfsFunction struct { }
func NewIfsFunction ¶
func NewIfsFunction() *IfsFunction
func (*IfsFunction) Evaluate ¶
func (f *IfsFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*IfsFunction) Name ¶
func (*IfsFunction) Name() string
type InFunction ¶
type InFunction struct { }
func NewInFunction ¶
func NewInFunction() *InFunction
func (*InFunction) Evaluate ¶
func (f *InFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*InFunction) Name ¶
func (*InFunction) Name() string
type LeFunction ¶
type LeFunction struct { }
func NewLeFunction ¶
func NewLeFunction() *LeFunction
func (*LeFunction) Evaluate ¶
func (f *LeFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*LeFunction) Name ¶
func (*LeFunction) Name() string
type LessFunction ¶
type LessFunction struct { }
func NewLessFunction ¶
func NewLessFunction() *LessFunction
func (*LessFunction) Evaluate ¶
func (f *LessFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*LessFunction) Name ¶
func (*LessFunction) Name() string
type LnFunction ¶
type LnFunction struct { }
func NewLnFunction ¶
func NewLnFunction() *LnFunction
func (*LnFunction) Evaluate ¶
func (f *LnFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*LnFunction) Name ¶
func (*LnFunction) Name() string
type Log10Function ¶
type Log10Function struct { }
func NewLog10Function ¶
func NewLog10Function() *Log10Function
func (*Log10Function) Evaluate ¶
func (f *Log10Function) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*Log10Function) Name ¶
func (*Log10Function) Name() string
type Log2Function ¶
type Log2Function struct { }
func NewLog2Function ¶
func NewLog2Function() *Log2Function
func (*Log2Function) Evaluate ¶
func (f *Log2Function) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*Log2Function) Name ¶
func (*Log2Function) Name() string
type LogFunction ¶
type LogFunction struct { }
func NewLogFunction ¶
func NewLogFunction() *LogFunction
func (*LogFunction) Evaluate ¶
func (f *LogFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*LogFunction) Name ¶
func (*LogFunction) Name() string
type LookupFunction ¶
type LookupFunction struct { }
func NewLookupFunction ¶
func NewLookupFunction() *LookupFunction
func (*LookupFunction) Evaluate ¶
func (f *LookupFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*LookupFunction) Name ¶
func (*LookupFunction) Name() string
type MaxFunction ¶
type MaxFunction struct { }
func NewMaxFunction ¶
func NewMaxFunction() *MaxFunction
func (*MaxFunction) Evaluate ¶
func (f *MaxFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*MaxFunction) Name ¶
func (*MaxFunction) Name() string
type MinFunction ¶
type MinFunction struct { }
func NewMinFunction ¶
func NewMinFunction() *MinFunction
func (*MinFunction) Evaluate ¶
func (f *MinFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*MinFunction) Name ¶
func (*MinFunction) Name() string
type ModFunction ¶
type ModFunction struct { }
func NewModFunction ¶
func NewModFunction() *ModFunction
func (*ModFunction) Evaluate ¶
func (f *ModFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*ModFunction) Name ¶
func (*ModFunction) Name() string
type MultiplyFunction ¶
type MultiplyFunction struct { }
func NewMultiplyFunction ¶
func NewMultiplyFunction() *MultiplyFunction
func (*MultiplyFunction) Evaluate ¶
func (f *MultiplyFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*MultiplyFunction) Name ¶
func (*MultiplyFunction) Name() string
type NeFunction ¶
type NeFunction struct { }
func NewNeFunction ¶
func NewNeFunction() *NeFunction
func (*NeFunction) Evaluate ¶
func (f *NeFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*NeFunction) Name ¶
func (*NeFunction) Name() string
type OrFunction ¶
type OrFunction struct { }
func NewOrFunction ¶
func NewOrFunction() *OrFunction
func (*OrFunction) Evaluate ¶
func (f *OrFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*OrFunction) Name ¶
func (*OrFunction) Name() string
type PlusFunction ¶
type PlusFunction struct { }
func NewPlusFunction ¶
func NewPlusFunction() *PlusFunction
func (*PlusFunction) Evaluate ¶
func (f *PlusFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*PlusFunction) Name ¶
func (*PlusFunction) Name() string
type PowerFunction ¶
type PowerFunction struct { }
func NewPowerFunction ¶
func NewPowerFunction() *PowerFunction
func (*PowerFunction) Evaluate ¶
func (f *PowerFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*PowerFunction) Name ¶
func (*PowerFunction) Name() string
type RoundFunction ¶
type RoundFunction struct { }
func NewRoundFunction ¶
func NewRoundFunction() *RoundFunction
func (*RoundFunction) Evaluate ¶
func (f *RoundFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*RoundFunction) Name ¶
func (*RoundFunction) Name() string
type ShiftLeftFunction ¶
type ShiftLeftFunction struct { }
func NewShiftLeftFunction ¶
func NewShiftLeftFunction() *ShiftLeftFunction
func (*ShiftLeftFunction) Evaluate ¶
func (f *ShiftLeftFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*ShiftLeftFunction) Name ¶
func (*ShiftLeftFunction) Name() string
type ShiftRightFunction ¶
type ShiftRightFunction struct { }
func NewShiftRightFunction ¶
func NewShiftRightFunction() *ShiftRightFunction
func (*ShiftRightFunction) Evaluate ¶
func (f *ShiftRightFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*ShiftRightFunction) Name ¶
func (*ShiftRightFunction) Name() string
type SignFunction ¶
type SignFunction struct { }
func NewSignFunction ¶
func NewSignFunction() *SignFunction
func (*SignFunction) Evaluate ¶
func (f *SignFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*SignFunction) Name ¶
func (*SignFunction) Name() string
type SinFunction ¶
type SinFunction struct { }
func NewSinFunction ¶
func NewSinFunction() *SinFunction
func (*SinFunction) Evaluate ¶
func (f *SinFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*SinFunction) Name ¶
func (*SinFunction) Name() string
type SqrtFunction ¶
type SqrtFunction struct { }
func NewSqrtFunction ¶
func NewSqrtFunction() *SqrtFunction
func (*SqrtFunction) Evaluate ¶
func (f *SqrtFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*SqrtFunction) Name ¶
func (*SqrtFunction) Name() string
type SubtractFunction ¶
type SubtractFunction struct { }
func NewSubtractFunction ¶
func NewSubtractFunction() *SubtractFunction
func (*SubtractFunction) Evaluate ¶
func (f *SubtractFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*SubtractFunction) Name ¶
func (*SubtractFunction) Name() string
type TanFunction ¶
type TanFunction struct { }
func NewTanFunction ¶
func NewTanFunction() *TanFunction
func (*TanFunction) Evaluate ¶
func (f *TanFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*TanFunction) Name ¶
func (*TanFunction) Name() string
type TruncateFunction ¶
type TruncateFunction struct { }
func NewTruncateFunction ¶
func NewTruncateFunction() *TruncateFunction
func (*TruncateFunction) Evaluate ¶
func (f *TruncateFunction) Evaluate(context *opt.FormulaContext, args ...*opt.LogicalExpression) (*opt.Argument, error)
func (*TruncateFunction) Name ¶
func (*TruncateFunction) Name() string
Source Files ¶
- absFunction.go
- acosFunction.go
- andFunction.go
- asinFunction.go
- atanFunction.go
- cbrtFunction.go
- ceilFunction.go
- concatFunction.go
- cosFunction.go
- divideFuction.go
- eqFunction.go
- expFunction.go
- floorFunction.go
- geFunction.go
- greaterFunction.go
- ifsFunction.go
- iifFunction.go
- inFunction.go
- init.go
- leFunction.go
- lessFunction.go
- lnFunction.go
- log10Function.go
- log2Function.go
- logExpression.go
- lookupFunction.go
- maxFunction.go
- minFunction.go
- modFunction.go
- multiplyFunction.go
- neFunction.go
- orFunction.go
- plusFunction.go
- powFunction.go
- roundFunction.go
- shiftLeftFunction.go
- shiftRightFunction.go
- signFunction.go
- sinFunction.go
- sqrtFunction.go
- subtractFunction.go
- tanFunction.go
- truncateFunction.go
Click to show internal directories.
Click to hide internal directories.