diff options
Diffstat (limited to 'compare')
-rw-r--r-- | compare/compare.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compare/compare.go b/compare/compare.go index 19a5deaa2..18c0de777 100644 --- a/compare/compare.go +++ b/compare/compare.go @@ -20,6 +20,12 @@ type Eqer interface { Eq(other interface{}) bool } +// ProbablyEq is an equal check that may return false positives, but never +// a false negative. +type ProbablyEqer interface { + ProbablyEq(other interface{}) bool +} + // Comparer can be used to compare two values. // This will be used when using the le, ge etc. operators in the templates. // Compare returns -1 if the given version is less than, 0 if equal and 1 if greater than |