gitlab.com/evatix-go/core@v1.3.55/iserror/Equal.go (about) 1 package iserror 2 3 func Equal(left, right error) bool { 4 if left == right { 5 return true 6 } 7 8 if left == nil && right == nil { 9 return true 10 } 11 12 if left == nil || right == nil { 13 return false 14 } 15 16 return left.Error() == right.Error() 17 }