Documentation ¶
Index ¶
- Constants
- func MatchArgument(name string, args ...*LogicalExpression) error
- func MatchOneArgument(name string, args ...*LogicalExpression) error
- func MatchTwoArgument(name string, args ...*LogicalExpression) error
- type Argument
- func (arg *Argument) Equal(other *Argument) bool
- func (arg *Argument) Float64() (float64, error)
- func (arg *Argument) Int() (int, error)
- func (arg *Argument) Int64() (int64, error)
- func (arg *Argument) IsInteger() bool
- func (arg *Argument) IsNan() bool
- func (arg *Argument) IsNumber() bool
- func (arg *Argument) String() string
- type ArgumentFunc
- type FormulaContext
- type Function
- type LogicalExpression
- type Option
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func MatchArgument ¶
func MatchArgument(name string, args ...*LogicalExpression) error
func MatchOneArgument ¶
func MatchOneArgument(name string, args ...*LogicalExpression) error
func MatchTwoArgument ¶
func MatchTwoArgument(name string, args ...*LogicalExpression) error
Types ¶
type ArgumentFunc ¶
type ArgumentFunc func() (interface{}, error)
type FormulaContext ¶
func NewFormulaContext ¶
func NewFormulaContext(options ...Option) *FormulaContext
type Function ¶
type Function interface { Name() string Evaluate(context *FormulaContext, args ...*LogicalExpression) (*Argument, error) }
type LogicalExpression ¶
type LogicalExpression interface {
Evaluate(context *FormulaContext) (*Argument, error)
}
Click to show internal directories.
Click to hide internal directories.