Remove appends a "remove" operation to patch. > The "remove" operation removes the value at the target location. > > The target location MUST exist for the operation to be successful.
(path ...string)
| 70 | // > |
| 71 | // > The target location MUST exist for the operation to be successful. |
| 72 | func (patch *JSON6902) Remove(path ...string) *JSON6902 { |
| 73 | *patch = append(*patch, map[string]any{ |
| 74 | "op": "remove", |
| 75 | "path": patch.pointer(path...), |
| 76 | }) |
| 77 | |
| 78 | return patch |
| 79 | } |
| 80 | |
| 81 | // Replace appends a "replace" operation to patch. |
| 82 | // |