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
Performance improvements in Contains and Equivalent
ContainsMatch and EquivalentMatch now return a single Error, rather than separate errors for each value. The first time an error occurs, the match immediately returns, indicating a false match, and storing the error in the Match object.
Match V1, and V2 values now only return the value at the point where the match failed or where the error occurred, rather than the entire normalized version of the original v1 and v2 arguments. This is because Contains no longer does a full, deep normalization of the value.
Normalize options now have functional counterparts, which can be passed to Normalize(), Transform(), Merge(), and Get().
Two new Normalize options, PreserveTimes and ParseTimes allow special handling of time values. PreserveTimes preserves time.Time values instead of converting them to strings. It will also normalize *time.Time to time.Time. ParseTimes will try to parse strings as time objects and convert them to time.Time values if possible.