File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22[ ![ GoDoc] ( https://godoc.org/github.com/davidae/jm?status.svg )] ( https://godoc.org/github.com/davidae/jm )
33[ ![ Build Status] ( https://travis-ci.com/davidae/jm.svg " Travis CI status ")] ( https://travis-ci.com/davidae/jm )
44
5- A small package to compare JSONs with the advantage of using placeholders for possible unknown values.
6- It should work with any type of valid JSON - however nested and tangled it may be. The package only uses
7- golangs standard library, no dependencies.
5+ A small package to match JSONs with the addition of using placeholders for possible unknown values.
6+ It should work with any type of valid JSON - however nested and tangled it may be. This package uses only
7+ golang's standard library, no dependencies.
88
99# Installation
1010``` Shell
@@ -32,7 +32,7 @@ err := jm.Match(
3232 []byte (` {"created_at": "2009-11-10T23:00:00Z"}` ),
3333 jm.WithTimeLayout (time.RFC3339 ))
3434
35- fmt.Println (" we should not have an error here: %t " , err == nil )
35+ fmt.Printf (" we should not have an error here: %t " , err == nil )
3636```
3737It is also possible to define your own custom placeholders,
3838``` go
@@ -55,7 +55,7 @@ err := jm.Match(
5555 },
5656)
5757
58- fmt.Println (" we should not have an error here: %t " , err == nil )
58+ fmt.Printf (" we should not have an error here: %t " , err == nil )
5959```
6060
6161## Errors
You can’t perform that action at this time.
0 commit comments