{"modulePath":"github.com/linuxsuren/api-testing","version":"v0.0.21","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package compare\n\nPackage compare provides basic functions to compare JSON object and array. Currently we use gjson to store the JSON data. Please check tidwall/gjson.\n\n## Functions\n\n```go\nfunc Array(field string, expect, actul []gjson.Result) error\n```\nArray compares two JSON Array.\n\n```go\nfunc Element(field string, expect, actul gjson.Result) error\n```\nElement compares two JSON Element.\n\n```go\nfunc JoinErr(errs ...error) error\n```\nJoinErr returns an error that warp the given errors.\n\n```go\nfunc Object(field string, expect, actul map[string]gjson.Result) error\n```\nObject compares two JSON object.\n\n","path":"github.com/linuxsuren/api-testing/pkg/compare","name":"compare","synopsis":"Package compare provides basic functions to compare JSON object and array.","isRedistributable":true}
