diff --git a/common-errors.go b/common-errors.go index 7e7f194..1909a3b 100644 --- a/common-errors.go +++ b/common-errors.go @@ -18,6 +18,10 @@ func errExpectedGot(funcName string, kind string, value any) error { return fmt.Errorf("%s() expected %s, got %T (%v)", funcName, kind, value, value) } +func errDivisionByZero(funcName string) error { + return fmt.Errorf("%s() division by zero", funcName) +} + // --- Parameter errors func errOneParam(funcName string) error {