Bug#992749: ITP: golang-github-powerman-deepequal -- Go package with improved reflect.DeepEqual
Package: wnpp
Severity: wishlist
Owner: Eric Dorland <eric@debian.org>
* Package name : golang-github-powerman-deepequal
Version : 0.1.0-1
Upstream Author : Alex Efros
* URL : https://github.com/powerman/deepequal
* License : MIT
Programming Lang: Go
Description : Go package with improved reflect.DeepEqual
Go package with improved reflect.DeepEqual Go Reference
(https://pkg.go.dev/github.com/powerman/deepequal) CI/CD
(https://github.com/powerman/deepequal/actions?query=workflow%3ACI%2FCD)
Coverage Status
(https://coveralls.io/github/powerman/deepequal?branch=master) Go Report
Card (https://goreportcard.com/report/github.com/powerman/deepequal)
Release (https://github.com/powerman/deepequal/releases/latest)
.
Most of the code is copied from Go reflect package with slight
modifications.
.
Differences from reflect.DeepEqual: • If compared value implements
.Equal(valueOfSameType) bool method then it will be called instead of
comparing values as is.• If called Equal method will panics then whole
DeepEqual will panics too. This means you can use this DeepEqual method
to correctly compare types like time.Time or decimal.Decimal, without
taking in account unimportant differences (like time zone or exponent).
Needed for golang-github-powerman-check
Reply to: