ReplacePatchOperation returns a replace JSON patch operation.
(path string, value interface{})
| 39 | |
| 40 | // ReplacePatchOperation returns a replace JSON patch operation. |
| 41 | func ReplacePatchOperation(path string, value interface{}) PatchOperation { |
| 42 | return PatchOperation{ |
| 43 | Op: replaceOperation, |
| 44 | Path: path, |
| 45 | Value: value, |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | // CopyPatchOperation returns a copy JSON patch operation. |
| 50 | func CopyPatchOperation(from, path string) PatchOperation { |
no outgoing calls