Documentation ¶
Index ¶
- Constants
- Variables
- func CheckPath(path string) error
- func NewErrIndexOutOfRange(arrayName string, currentIndex int, from int, to int) error
- func NewErrNoPropertyInObject(obj string, property string) error
- func NewErrTypeAssertion(currentType string, expextedType string) error
- type Context
- type PathUnit
- type PathUnitIterator
- type PathUnitType
- type Value
Constants ¶
View Source
const ( Array = 0 Object = 1 )
Variables ¶
View Source
var ( ErrTypeAssertion = errors.New("Type assertion") ErrTypeNotFound = errors.New("Type not found") ErrIndexOutOfRange = errors.New("Index out of range") ErrNoPropertyInObject = errors.New("No property in object") )
View Source
var ( ErrVariableNameBeginning = errors.New("The variable name must begin with a letter or underscore") ErrVariableName = errors.New("The variable name must contain only letters, numbers or underscores") ErrNoClosingSquareBracket = errors.New("No closing square bracket") ErrWrongIndex = errors.New("Wrong index") ErrUnknownCharacter = errors.New("Unknown character") ErrVariableNameNotSpecified = errors.New("Variable name not specified") )
Functions ¶
func NewErrIndexOutOfRange ¶
func NewErrTypeAssertion ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext() *Context
func NewContextFromJSON ¶
type PathUnit ¶
type PathUnit struct { Type PathUnitType Propery string Index int Subpath *PathUnitIterator }
type PathUnitIterator ¶
type PathUnitIterator struct {
// contains filtered or unexported fields
}
func NewPathUnitIterator ¶
func NewPathUnitIterator(path string) *PathUnitIterator
func (*PathUnitIterator) HasNext ¶
func (it *PathUnitIterator) HasNext() bool
func (*PathUnitIterator) Next ¶
func (it *PathUnitIterator) Next() (*PathUnit, error)
type PathUnitType ¶
type PathUnitType = int
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func (*Value) GetRawValue ¶
Click to show internal directories.
Click to hide internal directories.