From 2d69c4db4db25e256c22b8fd544dc7b95d71da9c Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Fri, 30 Aug 2019 01:26:24 +0300 Subject: Initial --- errors.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 errors.go (limited to 'errors.go') diff --git a/errors.go b/errors.go new file mode 100644 index 0000000..fd57ccc --- /dev/null +++ b/errors.go @@ -0,0 +1,8 @@ +package checksum + +import "errors" + +var ( + ErrInvalidNumber = errors.New("invalid number") // number contains non numeric symbols + ErrInvalidChecksum = errors.New("invalid checksum") // number not correct by luhn algorithm +) -- cgit v1.2.3