You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this is working as intended, the documentation says:
Maps are equal if they are both nil or both non-nil, where recursively calling Equal on all non-ignored map entries report equal. Map keys are equal according to the == operator. To use custom comparisons for map keys, consider using cmpopts.SortMaps. Empty non-nil maps and nil maps are not equal; to equate empty maps, consider using cmpopts.EquateEmpty.
It provides alternative solutions such as using cmpopts.SortMaps.
It seems that
cmpopts.EquateApproxTime
doesn't handle the case when the type is of e.g.map[time.Time]string
. But maybe this is by design?The text was updated successfully, but these errors were encountered: