wlf f051014ac2 提交正常运行的所有代码 | пре 1 година | |
---|---|---|
.. | ||
.travis.yml | пре 1 година | |
LICENSE | пре 1 година | |
README.md | пре 1 година | |
merge.go | пре 1 година | |
patch.go | пре 1 година |
Provides the ability to modify and test a JSON according to a RFC6902 JSON patch and RFC7396 JSON Merge Patch.
Version: 1.0
[]byte
, obtain a Patch objectobj, err := jsonpatch.DecodePatch(patch)
out, err := obj.Apply(doc)
mergeDoc, err := jsonpatch.CreateMergePatch(a, b)
jsonpatch.Equal(doca, docb)