Package testdeep allows extremely flexible deep comparison, built for testing.
It is a go rewrite and adaptation of wonderful Test::Deep perl module.
In golang, comparing data structure is usually done using reflect.DeepEqual or using a package that uses this function behind the scene.
This function works very well, but it is not flexible. Both compared structures must match exactly.
The purpose of testdeep package is to do its best to introduce this missing flexibility using operators when the expected value (or one of its component) cannot be matched exactly.
go-testdeep alternatives and similar packages
Based on the "Testing Frameworks" category
Do you think we are missing an alternative of go-testdeep or a related project?