Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePatch ¶
CreatePatch creates a patch as specified in http://jsonpatch.com/.
'before' is original, 'after' is the modified struct. The function will return the patch as byte array.
An error will be returned if any of the two structs is nil.
Types ¶
type Patch ¶
type Patch []jsonpatch.JsonPatchOperation
Patch is a slice of JsonPatchOperations
func (Patch) MarshalJSON ¶
MarshalJSON converts the Patch into a byte array
Click to show internal directories.
Click to hide internal directories.