Add Last Ditch Equals Comparison

Fixes a problem where int/float of the same value would return not
equal. This may also fix other comparisons in the future.
This commit is contained in:
Tyler Bunnell 2012-10-18 14:17:52 -06:00
parent 6d9d998d04
commit 36fef36bf3

View File

@ -25,6 +25,11 @@ func ObjectsAreEqual(a, b interface{}) bool {
return true
}
// Last ditch effort
if fmt.Sprintf("%#v", a) == fmt.Sprintf("%#v", b) {
return true
}
return false
}