Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two non-identical int64 numbers with 17 digits were compared, and the result obtained was the same. #48

Open
miscomputer opened this issue Jun 23, 2023 · 0 comments

Comments

@miscomputer
Copy link

func main() {
json1 := { "custom_id":72211083386779239 }
json2 := { "custom_id":72211083386779230 }

diff, _ := gojsondiff.New().Compare([]byte(json1), []byte(json2))

if diff.Modified() {
	fmt.Println(diff.Deltas())
} else {
	fmt.Println("Two JSONs are the same.")
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant