| 1 |
Source: golang-github-powerman-deepequal |
| 2 |
Maintainer: Debian Go Packaging Team <[email protected]> |
| 3 |
Uploaders: Eric Dorland <[email protected]> |
| 4 |
Section: golang |
| 5 |
Testsuite: autopkgtest-pkg-go |
| 6 |
Priority: optional |
| 7 |
Build-Depends: debhelper-compat (= 13), |
| 8 |
dh-golang, |
| 9 |
golang-any |
| 10 |
Standards-Version: 4.7.0.1 |
| 11 |
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-powerman-deepequal |
| 12 |
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-powerman-deepequal.git |
| 13 |
Homepage: https://github.com/powerman/deepequal |
| 14 |
Rules-Requires-Root: no |
| 15 |
XS-Go-Import-Path: github.com/powerman/deepequal |
| 16 |
|
| 17 |
Package: golang-github-powerman-deepequal-dev |
| 18 |
Architecture: all |
| 19 |
Depends: ${misc:Depends} |
| 20 |
Description: Go library with improved reflect.DeepEqual |
| 21 |
Most of the code is copied from Go reflect package with slight |
| 22 |
modifications. |
| 23 |
. |
| 24 |
Differences from reflect.DeepEqual: |
| 25 |
* If compared value implements .Equal(valueOfSameType) bool method then |
| 26 |
it will be called instead of comparing values as is. |
| 27 |
* If called Equal method will panics then whole DeepEqual will panics too. |
| 28 |
. |
| 29 |
This means you can use this DeepEqual method to correctly compare types |
| 30 |
like time.Time or decimal.Decimal, without taking in account unimportant |
| 31 |
differences (like time zone or exponent). |