instead of defining structs for commands, we just define a command shape set: type, path, value del: type, path arrayappend: type, path, value
(path Path, value any)
| 35 | // arrayappend: type, path, value |
| 36 | |
| 37 | func MakeSetCommand(path Path, value any) Command { |
| 38 | return Command{ |
| 39 | "type": SetCommandStr, |
| 40 | "path": path, |
| 41 | "data": value, |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func MakeDelCommand(path Path) Command { |
| 46 | return Command{ |
no outgoing calls