wlf f051014ac2 提交正常运行的所有代码 | 1 year ago | |
---|---|---|
.. | ||
.travis.yml | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
merge.go | 1 year ago | |
patch.go | 1 year ago |
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)