Skip to content

Commit

Permalink
Use Major subdirectory structure to maintain dep compatiability (#20)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Jun 26, 2019
1 parent 8287e15 commit 5afafb5
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
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.

0 comments on commit 5afafb5

Please sign in to comment.