go-patch
go-patch copied to clipboard
There are some pretty valuable use cases for have a move/copy functionality, primarily when you want to re-arrange nested objects. For example, suppose you have a yaml file like a...
We would find it useful to be able to apply a `replace` pattern to all elements in an array. For example: ```yaml - type: replace path: /instance_groups/*/vm_extensions?/- value: foo ```...
This PR is in two parts. The first part (first commit) refactors the `{find,replace,remove}_op.go` code so that the logic that descends lives with the individual token types which are split...
It would be lovely if I could append multiple items in a single operation. It can become a bit unwieldily writing it many times. ``` - type: replace path: /releases/-...