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