- 主页 [github.com]
structural equality library
This package contains a structural equality library for Golang.
One can define expectations on objects (e.g. API responses or expected events) by creating an instance of seq.Map, which is provided by this package.
Maps can be nested or they could have flat paths. Values could be represented with strings, primitive types, instances of seq.Map or JSON-serializable objects.
Once the expectation exists, one could compare it with an actual object. If the actual object has some invalid or missing properties, the result will have nice error messages.