Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ go_import_path: gomodules.xyz/jsonpatch

cache:
directories:
- $HOME/.cache/go-build
- $GOPATH/pkg/mod
- $HOME/.cache/go-build
- $GOPATH/pkg/mod

env:
- GO111MODULE=on

script:
- go test -v
- cd v2
- go test -v
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ JSON Patch allows you to generate JSON that describes changes you want to make t
## Usage ##

```go
import "gomodules.xyz/jsonpatch/v2" // with go modules enabled (GO111MODULE=on or outside GOPATH)
import "gomodules.xyz/jsonpatch" // with go modules disabled
import "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 Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.