add a todo
This commit is contained in:
parent
1b133fa865
commit
fdc71057eb
|
@ -99,7 +99,9 @@ func patch(obj any, path string, value any) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *FeedResponse) Patch(instr *instruction) {
|
func (f *FeedResponse) Patch(instr *instruction) {
|
||||||
log.Println("updating %v to %v", instr.Path, instr.Value)
|
// TODO: need to handle each type of instruction separately: add,
|
||||||
|
// replace, remove, copy, move
|
||||||
|
log.Println("updating", instr.Path, "to", instr.Value)
|
||||||
err := patch(f, instr.Path, instr.Value)
|
err := patch(f, instr.Path, instr.Value)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
|
|
Loading…
Reference in New Issue