Skip to content

Commit

Permalink
Prepare v2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Jun 25, 2019
1 parent 9fbceb0 commit 1a8e4e1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ As per http://jsonpatch.com JSON Patch is specified in RFC 6902 from the IETF.
JSON Patch allows you to generate JSON that describes changes you want to make to a document, so you don't have to send the whole doc. JSON Patch format is supported by HTTP PATCH method, allowing for standards based partial updates via REST APIs.

```console
go get gomodules.xyz/jsonpatch
go get gomodules.xyz/jsonpatch/v2
```

I tried some of the other "jsonpatch" go implementations, but none of them could diff two json documents and generate format like jsonpatch.com specifies. Here's an example of the patch format:
Expand All @@ -31,7 +31,7 @@ package main

import (
"fmt"
"gomodules.xyz/jsonpatch"
"gomodules.xyz/jsonpatch/v2"
)

var simpleA = `{"a":100, "b":200, "c":"hello"}`
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module gomodules.xyz/jsonpatch
module gomodules.xyz/jsonpatch/v2

go 1.12

Expand Down
2 changes: 1 addition & 1 deletion jsonpatch_json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"gomodules.xyz/jsonpatch"
"gomodules.xyz/jsonpatch/v2"
)

func TestMarshalNullableValue(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion jsonpatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

jp "github.com/evanphx/json-patch"
"github.com/stretchr/testify/assert"
"gomodules.xyz/jsonpatch"
"gomodules.xyz/jsonpatch/v2"
)

var simpleA = `{"a":100, "b":200, "c":"hello"}`
Expand Down

0 comments on commit 1a8e4e1

Please sign in to comment.