google/go-cmp
View on GitHub ↗ ★ 4,686 Go
Package for comparing Go values in tests
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2020-06-16 · latest 2022-11-03
20082026
-
…2. Google has an edit graph implementation in Go in the cmp package https://github.com/google/go-cmp/blob/master/cmp/internal/di...
comment by leetrout · 2022-11-03 · in Visualizing Diffs: The Myers difference algorithm (2020) -
…ints, strings and times. The big exception to that is tests, for which I recommend cmp ( https://pkg.go.dev/github.com/google/go-cmp/cmp ).
comment by jbamsterdam · 2020-07-08 · in Keeping your Go modules compatible -
…provides `Equal` for equality, instead of `Compare`. [1]: https://godoc.org/strings#Compare [2]: https://github.com/google/go-cmp
comment by MHordecki · 2020-06-16 · in The Next Step for Generics