modulepackage
5.6.1
Repository: https://github.com/albert-wang/json-patch.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
CreateMergePatch will return a merge patch document capable of converting the original document(s) to the modified document(s).
DecodePatch decodes the passed JSON document as an RFC 6902 patch.
Equal indicates if 2 JSON documents have the same structural equality.
MergeMergePatches merges two merge patches together, such that applying this resulting merged merge patch to a document yields the same as merging each merge patch to the document in succession.
MergePatch merges the patchData into the docData.
NewAccumulatedCopySizeError returns an AccumulatedCopySizeError.
NewApplyOptions creates a default set of options for calls to ApplyWithOptions.
NewArraySizeError returns an ArraySizeError.
# Variables
AccumulatedCopySizeLimit limits the total size increase in bytes caused by "copy" operations in a patch.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SupportNegativeIndices decides whether to support non-standard practice of allowing negative indices to mean indices starting at the end of an array.
# Structs
AccumulatedCopySizeError is an error type returned when the accumulated size increase caused by copy operations in a patch operation has exceeded the limit.
ApplyOptions specifies options for calls to ApplyWithOptions.
ArraySizeError is an error type returned when the array size has exceeded the limit.