Documentation ¶
Index ¶
Constants ¶
View Source
const ( PatchReplaceOp = "replace" PatchTestOp = "test" PatchAddOp = "add" PatchRemoveOp = "remove" )
Variables ¶
This section is empty.
Functions ¶
func EscapeJSONPointer ¶
func GeneratePatchPayload ¶
func GeneratePatchPayload(patches ...PatchOperation) ([]byte, error)
Types ¶
type PatchOperation ¶
type PatchOperation struct { Op string `json:"op"` Path string `json:"path"` Value interface{} `json:"value"` }
func UnmarshalPatch ¶
func UnmarshalPatch(patch []byte) ([]PatchOperation, error)
Click to show internal directories.
Click to hide internal directories.