Documentation
¶
Index ¶
- Constants
- func GetNumber(args []interface{}, index int) *big.Rat
- func GetNumberAsInt(args []interface{}, index int) int
- func MinNumOfParams(args []interface{}, expected int)
- func MustBeBool(args []interface{}, index int) bool
- func MustBeDate(args []interface{}, index int) time.Time
- func MustBeNumber(args []interface{}, index int) *big.Rat
- func MustBeNumberAsInt(args []interface{}, index int) int
- func MustBeString(args []interface{}, index int) string
- func NewContext() *context
- func NumOfParams(args []interface{}, expected int)
- type Context
- type Expr
- type Functions
- type NOFUNC
- type Values
Constants ¶
View Source
const ( EOE token = iota BAD IDENT STRING NUMBER BOOL COMMA LPAREN RPAREN NOT ADD SUB MUL DIV EQ NEQ LT LTE GT GTE AND OR )
View Source
const (
ISO8601 string = "2006-01-02T15:04:05.999Z0700"
)
Variables ¶
This section is empty.
Functions ¶
func GetNumberAsInt ¶
func MinNumOfParams ¶
func MinNumOfParams(args []interface{}, expected int)
func MustBeBool ¶
func MustBeDate ¶
func MustBeNumber ¶
func MustBeNumberAsInt ¶
func MustBeString ¶
func NewContext ¶
func NewContext() *context
func NumOfParams ¶
func NumOfParams(args []interface{}, expected int)
Types ¶
type Expr ¶
func ParseIdent ¶
ParseIdent is shortcut function to get value from context
func ParseString ¶
ParseString parses string and returns expression or error
Click to show internal directories.
Click to hide internal directories.