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.
pull/14/merge
Tyler Bunnell 2012-10-18 14:17:52 -06:00
parent 6d9d998d04
commit 36fef36bf3
1 changed files with 5 additions and 0 deletions

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
}