MCPcopy Index your code
hub / github.com/mattbaird/jsonpatch / CreatePatch

Function CreatePatch

jsonpatch.go:58–72  ·  view source on GitHub ↗

CreatePatch creates a patch as specified in http://jsonpatch.com/ 'a' is original, 'b' is the modified document. Both are to be given as json encoded content. The function will return an array of JsonPatchOperations An error will be returned if any of the two documents are invalid.

(a, b []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

TestSuperComplexSameFunction · 0.85
TestArrayRemoveMultiFunction · 0.85
TestJSONPatchCreateFunction · 0.85
TestHyperComplexSameFunction · 0.85
TestComplexSameFunction · 0.85
TestComplexOneIntReplaceFunction · 0.85

Calls 1

handleValuesFunction · 0.85

Tested by 15

TestSuperComplexSameFunction · 0.68
TestArrayRemoveMultiFunction · 0.68
TestJSONPatchCreateFunction · 0.68
TestHyperComplexSameFunction · 0.68
TestComplexSameFunction · 0.68
TestComplexOneIntReplaceFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…