Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2020 (2)
20082026
  1. …2. Google has an edit graph implementation in Go in the cmp package https://github.com/google/go-cmp/blob/master/cmp/internal/di...
  2. …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
  3. …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