Versions in this module Expand all Collapse all v1 v1.0.1 Feb 26, 2020 v1.0.0 Apr 24, 2018 Changes in this version + const ContentType + type Operation struct + From string + Op string + Path string + Value interface{} + func (o *Operation) UnmarshalJSON(buf []byte) error + type Patch []Operation + func Generate(base, target []byte, paranoid bool) (Patch, error) + func GenerateFull(base, target []byte, paranoid, pretest bool) (Patch, error) + func NewPatch(buf []byte) (res Patch, err error) + func (p Patch) Apply(base []byte) (result []byte, err error, loc int) + type Pointer []pointerSegment + func NewPointer(s string) (Pointer, error) + func (a Pointer) Contains(b Pointer) bool + func (p *Pointer) Remove(from interface{}) (interface{}, error) + func (p *Pointer) Test(from interface{}, sample interface{}) error + func (p *Pointer) UnmarshalJSON(buf []byte) error + func (p Pointer) Append(frag string) Pointer + func (p Pointer) Chop() (string, Pointer) + func (p Pointer) Copy(from interface{}, at Pointer) (interface{}, error) + func (p Pointer) Get(from interface{}) (interface{}, error) + func (p Pointer) MarshalJSON() ([]byte, error) + func (p Pointer) Move(from interface{}, at Pointer) (interface{}, error) + func (p Pointer) Put(to interface{}, val interface{}) (interface{}, error) + func (p Pointer) Replace(to interface{}, val interface{}) (interface{}, error) + func (p Pointer) Shift() (string, Pointer) + func (p Pointer) String() string