Documentation
¶
Overview ¶
Package jsondiff provides utilites for creating RFC 6902 (JSON Patch) and RFC 7386 (JSON Merge Patch) patches.
It does this by wrapping github.com/evanphx/json-patch and github.com/mattbaird/jsonpatch ; there's very little actual code here; it is just a set of wrappers to provide a nicer interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal(a interface{}, b interface{}) bool
Test whether two objects have equivalent JSON structures.
func NewJSONMergePatch ¶
func NewJSONMergePatch(a interface{}, b interface{}) (jsonpatch.JSONMergePatch, locale.Error)
Diff two objects, and produce an RFC 7386 JSON Merge Patch.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.