Versions in this module Expand all Collapse all v0 v0.2.0 Dec 18, 2018 Changes in this version type ArrayIndex + Path Pointer type ArrayInsertion + Path Pointer + type Diff struct + Left interface{} + Right interface{} + Unchecked bool + func (d Diff) Calculate() Ops type OpDefinition + Absent *bool + func NewOpDefinitionsFromOps(ops Ops) ([]OpDefinition, error) + type OpMismatchTypeErr struct + Obj interface{} + Path Pointer + Type_ string + func NewOpArrayMismatchTypeErr(path Pointer, obj interface{}) OpMismatchTypeErr + func NewOpMapMismatchTypeErr(path Pointer, obj interface{}) OpMismatchTypeErr + func (e OpMismatchTypeErr) Error() string type OpMissingIndexErr + Path Pointer + type OpMissingMapKeyErr struct + Key string + Obj map[interface{}]interface{} + Path Pointer + func (e OpMissingMapKeyErr) Error() string + type OpMultipleMatchingIndexErr struct + Idxs []int + Path Pointer + func (e OpMultipleMatchingIndexErr) Error() string + type OpUnexpectedTokenErr struct + Path Pointer + Token Token + func (e OpUnexpectedTokenErr) Error() string + type TestOp struct + Absent bool + Path Pointer + Value interface{} + func (op TestOp) Apply(doc interface{}) (interface{}, error) v0.1.0 Oct 6, 2017 Changes in this version + type AfterLastIndexToken struct + type AfterModifier struct + type ArrayIndex struct + Array []interface{} + Index int + Modifiers []Modifier + func (i ArrayIndex) Concrete() (int, error) + type ArrayInsertion struct + Array []interface{} + Index int + Modifiers []Modifier + func (i ArrayInsertion) Concrete() (ArrayInsertionIndex, error) + type ArrayInsertionIndex struct + func (i ArrayInsertionIndex) Update(array []interface{}, obj interface{}) []interface{} + type BeforeModifier struct + type DescriptiveOp struct + ErrorMsg string + Op Op + func (op DescriptiveOp) Apply(doc interface{}) (interface{}, error) + type ErrOp struct + Err error + func (op ErrOp) Apply(_ interface{}) (interface{}, error) + type FindOp struct + Path Pointer + func (op FindOp) Apply(doc interface{}) (interface{}, error) + type IndexToken struct + Index int + Modifiers []Modifier + type KeyToken struct + Key string + Optional bool + type MatchingIndexToken struct + Key string + Modifiers []Modifier + Optional bool + Value string + type Modifier interface + type NextModifier struct + type Op interface + Apply func(interface{}) (interface{}, error) + type OpDefinition struct + Error *string + Path *string + Type string + Value *interface{} + type OpMissingIndexErr struct + Idx int + Obj []interface{} + func (e OpMissingIndexErr) Error() string + type Ops []Op + func NewOpsFromDefinitions(opDefs []OpDefinition) (Ops, error) + func (ops Ops) Apply(doc interface{}) (interface{}, error) + type Pointer struct + func MustNewPointerFromString(str string) Pointer + func NewPointer(tokens []Token) Pointer + func NewPointerFromString(str string) (Pointer, error) + func (p *Pointer) UnmarshalFlag(data string) error + func (p Pointer) IsSet() bool + func (p Pointer) String() string + func (p Pointer) Tokens() []Token + type PrevModifier struct + type RemoveOp struct + Path Pointer + func (op RemoveOp) Apply(doc interface{}) (interface{}, error) + type ReplaceOp struct + Path Pointer + Value interface{} + func (op ReplaceOp) Apply(doc interface{}) (interface{}, error) + type RootToken struct + type Token interface