Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonPatchOperation ¶
type JsonPatchOperation = Operation
type Operation ¶
type Operation struct { Operation string `json:"op"` Path string `json:"path"` Value interface{} `json:"value,omitempty"` }
func CreatePatch ¶
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.
func NewOperation ¶ added in v2.1.0
func (*Operation) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.