https://github.com/sirkon/deepequal
https://github.com/sirkon/deepequal
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sirkon/deepequal
- Owner: sirkon
- License: mit
- Created: 2022-03-03T17:55:35.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-10T10:25:15.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T17:58:14.462Z (11 months ago)
- Language: Go
- Size: 312 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deepequal
Package with protobuf-friendly deepequal functionality.
As you probably know, `reflect.DeepEqual` should not work for structures generated with protoc-gen-go because of their
hidden service fields. This modified version of `reflect.DeepEqual` takes care of this and call `proto.Equal`
for values of these types.Also, there's a `deepequal.SideBySide` function that can be used in tests to show a difference between expected
and actual values side by side.
## Installation
```shell
go get github.com/sirkon/deepequal
```