Closed goraxe closed 6 years ago
Looks like caused by an attempt to use (time.Time).Equal(u time.Time)
method and calling it with main.Time
argument. Ideally deep must check argument types as well…
Workaround could be:
func (t *Time) Equal(t2 *Time) bool {
return t.Time.Equal(t2.Time)
}
Thanks for the report. Should be fixed in latest (929fce9).
Comparing on a struct with an embedded time.Time causes a panic. Below is a minimal test case to reproduce the panic