Debian Codegraph @

/

debian golang-github-powerman-deepequal 0.2.0-1debian golang-github-powerman-deepequal-dev debiangoinijavascriptmakefilemarkdownshelltomlyaml 28 files · 58 symbols
View dependency graph

Depends on

README (full)

Go package with improved reflect.DeepEqual

License MIT License BSD3 Go version Test Coverage Status Release Go Reference

Linux | amd64 arm64 armv7 ppc64le s390x riscv64 macOS | amd64 arm64 Windows | amd64 arm64

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).

dir .github/
dir debian/
file .editorconfig
file .gitattributes
file .gitignore
file .golangci.yml
file CHANGELOG.md
file LICENSE
file LICENSE-go
file README.md
file all_test.go
file custom.go
file custom_test.go
file deepequal.go
file go.mod
file mise.lock
file mise.toml
file type.go
file unsafe_test.go
file value.go