Documentation ¶
Index ¶
- Constants
- func IsIdentifierPart(r rune) bool
- func IsIdentifierStart(r rune) bool
- func NewScanner(path string) *scanner
- func Value(val interface{}) interface{}
- type Field
- type FieldNode
- func (this *FieldNode) Get(src interface{}) (interface{}, error)
- func (this *FieldNode) Next() Node
- func (this *FieldNode) Set(src interface{}, val interface{}) error
- func (this *FieldNode) String() string
- func (this *FieldNode) Type(src interface{}) (reflect.Type, error)
- func (this *FieldNode) Validate(src interface{}) error
- func (this *FieldNode) ValidateType(src interface{}, val interface{}) error
- type Node
- func Compile(path string) (Node, error)
- func FieldPath(path string) (Node, error)
- func NewEntry(index int, next Node) Node
- func NewFieldNode(name string, next Node) Node
- func NewProjection(path Node, next Node) Node
- func NewSelection(path Node, value interface{}, next Node) Node
- func NewSlice(start, end int, next Node) Node
- type ProjectionNode
- func (this *ProjectionNode) Get(src interface{}) (interface{}, error)
- func (this *ProjectionNode) Next() Node
- func (this *ProjectionNode) Set(src interface{}, val interface{}) error
- func (this *ProjectionNode) String() string
- func (this *ProjectionNode) Type(src interface{}) (reflect.Type, error)
- func (this *ProjectionNode) Validate(src interface{}) error
- func (this *ProjectionNode) ValidateType(src interface{}, val interface{}) error
- type SelectionNode
- func (this *SelectionNode) Get(src interface{}) (interface{}, error)
- func (this *SelectionNode) Next() Node
- func (this *SelectionNode) Set(src interface{}, val interface{}) error
- func (this *SelectionNode) String() string
- func (this *SelectionNode) Type(src interface{}) (reflect.Type, error)
- func (this *SelectionNode) Validate(src interface{}) error
- func (this *SelectionNode) ValidateType(src interface{}, val interface{}) error
- type SliceEntryNode
- func (this *SliceEntryNode) Get(src interface{}) (interface{}, error)
- func (this *SliceEntryNode) Next() Node
- func (this *SliceEntryNode) Set(src interface{}, val interface{}) error
- func (this *SliceEntryNode) String() string
- func (this *SliceEntryNode) Type(src interface{}) (reflect.Type, error)
- func (this *SliceEntryNode) Validate(src interface{}) error
- func (this *SliceEntryNode) ValidateType(src interface{}, val interface{}) error
- type SliceNode
- func (this *SliceNode) Get(src interface{}) (interface{}, error)
- func (this *SliceNode) Next() Node
- func (this *SliceNode) Set(src interface{}, val interface{}) error
- func (this *SliceNode) String() string
- func (this *SliceNode) Type(src interface{}) (reflect.Type, error)
- func (this *SliceNode) Validate(src interface{}) error
- func (this *SliceNode) ValidateType(src interface{}, val interface{}) error
Constants ¶
View Source
const EOI rune = 0
Variables ¶
This section is empty.
Functions ¶
func IsIdentifierPart ¶
func IsIdentifierStart ¶
func NewScanner ¶
func NewScanner(path string) *scanner
Types ¶
type Field ¶
type Field interface { BaseType() reflect.Type Type() reflect.Type Get(base interface{}) (interface{}, error) GetAsValue(base interface{}) (interface{}, error) Set(base interface{}, value interface{}) error String() string }
func RequiredField ¶
type FieldNode ¶
type FieldNode struct {
// contains filtered or unexported fields
}
func (*FieldNode) ValidateType ¶
func (this *FieldNode) ValidateType(src interface{}, val interface{}) error
type Node ¶
type Node interface { Next() Node String() string Type(interface{}) (reflect.Type, error) Validate(interface{}) error ValidateType(interface{}, interface{}) error Get(interface{}) (interface{}, error) Set(interface{}, interface{}) error // contains filtered or unexported methods }
func NewFieldNode ¶
func NewProjection ¶
func NewSelection ¶
type ProjectionNode ¶
type ProjectionNode struct {
// contains filtered or unexported fields
}
func (*ProjectionNode) Set ¶
func (this *ProjectionNode) Set(src interface{}, val interface{}) error
func (*ProjectionNode) String ¶
func (this *ProjectionNode) String() string
func (*ProjectionNode) ValidateType ¶
func (this *ProjectionNode) ValidateType(src interface{}, val interface{}) error
type SelectionNode ¶
type SelectionNode struct {
// contains filtered or unexported fields
}
func (*SelectionNode) String ¶
func (this *SelectionNode) String() string
func (*SelectionNode) ValidateType ¶
func (this *SelectionNode) ValidateType(src interface{}, val interface{}) error
type SliceEntryNode ¶
type SliceEntryNode struct {
// contains filtered or unexported fields
}
func (*SliceEntryNode) Set ¶
func (this *SliceEntryNode) Set(src interface{}, val interface{}) error
func (*SliceEntryNode) String ¶
func (this *SliceEntryNode) String() string
func (*SliceEntryNode) ValidateType ¶
func (this *SliceEntryNode) ValidateType(src interface{}, val interface{}) error
type SliceNode ¶
type SliceNode struct {
// contains filtered or unexported fields
}
func (*SliceNode) ValidateType ¶
func (this *SliceNode) ValidateType(src interface{}, val interface{}) error
Click to show internal directories.
Click to hide internal directories.