Documentation ¶
Index ¶
- Variables
- type CallUpdate
- type Daq
- type ObjectMap
- type Query
- func (q *Query) Array() ([]interface{}, error)
- func (q *Query) ArrayIndex() (interface{}, error)
- func (q *Query) Interface() (interface{}, error)
- func (q *Query) Number() (float64, error)
- func (q *Query) Object() (*ObjectMap, error)
- func (q *Query) QueryTypeItem() (TypeData, error)
- func (q *Query) String() (string, error)
- func (q *Query) Type() TypeData
- func (q *Query) Update(data interface{}) error
- type TypeData
- type TypeDataPath
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotFoundPath = "NotFoundPath" NotConvertTypeNumber = errors.New("NotConvertTypeNumber") NotConvertTypeString = errors.New("NotConvertTypeString") NotConvertTypeArray = errors.New("NotConvertTypeArray") NotConvertTypeObject = errors.New("NotConvertTypeObject") NotArrayIndex = errors.New("NotArrayIndex") PathExistsNotObject = errors.New("PathExistsNotObject") )
Functions ¶
This section is empty.
Types ¶
type CallUpdate ¶
type ObjectMap ¶
type ObjectMap struct {
// contains filtered or unexported fields
}
func (ObjectMap) CreatePath ¶
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func NewQuery ¶
func NewQuery(data interface{}, paths []string, index int, update CallUpdate) *Query
func (*Query) ArrayIndex ¶
func (*Query) QueryTypeItem ¶
type TypeDataPath ¶
type TypeDataPath int8
const ( PathData TypeDataPath = 1 ArrayData TypeDataPath = 2 )
Click to show internal directories.
Click to hide internal directories.