Documentation
¶
Overview ¶
Package combinator provides a user friendly way of constructing a validator abstract syntax tree.
TODO: Review this API of this package, especially the Array methods.
Index ¶
- func AllOf(patterns ...*ast.Pattern) *ast.Pattern
- func And(left, right *ast.Expr) *ast.Expr
- func Any() *ast.Pattern
- func AnyOf(patterns ...*ast.Pattern) *ast.Pattern
- func BoolConst(b bool) *ast.Expr
- func BoolVar() *ast.Expr
- func BoolsConst(is []bool) *ast.Expr
- func BytesConst(b []byte) *ast.Expr
- func BytesVar() *ast.Expr
- func Contains(left, right *ast.Expr) *ast.Expr
- func DoubleConst(d float64) *ast.Expr
- func DoubleVar() *ast.Expr
- func DoublesConst(is []float64) *ast.Expr
- func Elem(index int, child *ast.Pattern, children ...*ast.Pattern) *ast.Pattern
- func Eq(left, right *ast.Expr) *ast.Expr
- func EqualFold(s, t *ast.Expr) *ast.Expr
- func Eval(name string) *ast.Pattern
- func GE(left, right *ast.Expr) *ast.Expr
- func GT(left, right *ast.Expr) *ast.Expr
- func HasPrefix(a, b *ast.Expr) *ast.Expr
- func HasSuffix(a, b *ast.Expr) *ast.Expr
- func In(name string, child *ast.Pattern, children ...*ast.Pattern) *ast.Pattern
- func InAny(child *ast.Pattern, children ...*ast.Pattern) *ast.Pattern
- func InAnyExcept(name string, child *ast.Pattern, children ...*ast.Pattern) *ast.Pattern
- func InAnyOf(names []string, child *ast.Pattern, children ...*ast.Pattern) *ast.Pattern
- func InAnyOrder(child *ast.Pattern, children ...*ast.Pattern) *ast.Pattern
- func InAnyPath(child *ast.Pattern, children ...*ast.Pattern) *ast.Pattern
- func InOrder(child *ast.Pattern, children ...*ast.Pattern) *ast.Pattern
- func InPath(name string, child *ast.Pattern, children ...*ast.Pattern) *ast.Pattern
- func IntConst(i int64) *ast.Expr
- func IntVar() *ast.Expr
- func IntsConst(is []int64) *ast.Expr
- func LE(left, right *ast.Expr) *ast.Expr
- func LT(left, right *ast.Expr) *ast.Expr
- func Length(e *ast.Expr) *ast.Expr
- func ListOfBytesConst(is [][]byte) *ast.Expr
- func Many(p *ast.Pattern) *ast.Pattern
- func Maybe(p *ast.Pattern) *ast.Pattern
- func None() *ast.Pattern
- func Not(e *ast.Expr) *ast.Expr
- func OppositeOf(p *ast.Pattern) *ast.Pattern
- func Or(left, right *ast.Expr) *ast.Expr
- func Regex(expr, input *ast.Expr) *ast.Expr
- func StringConst(s string) *ast.Expr
- func StringVar() *ast.Expr
- func StringsConst(is []string) *ast.Expr
- func Type(expr *ast.Expr) *ast.Expr
- func UintConst(u uint64) *ast.Expr
- func UintVar() *ast.Expr
- func UintsConst(is []uint64) *ast.Expr
- func Value(expr *ast.Expr) *ast.Pattern
- type G
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolsConst ¶
func BytesConst ¶
func DoubleConst ¶
func DoublesConst ¶
func InAnyExcept ¶
InAnyExcept represents an ordered list of patterns in any field except the specified one.
func InAnyOrder ¶
InAnyOrder represents interleaved patterns.
func ListOfBytesConst ¶
func OppositeOf ¶
OppositeOf represents a compliment of a pattern.
func StringConst ¶
func StringsConst ¶
func UintsConst ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.