Golang REST patch operation.
Install gopatch
library with go get:
go get github.com/yuseferi/gopatch
....
{
"op": "replace",
"path": "/field1",
"value": "NewValue"
}
it does replace
operation on field1
and change it's value to NewValue
Code is distributed under MIT license, feel free to use it in your proprietary projects as well.