diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2019-08-30 01:26:24 +0300 |
---|---|---|
committer | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2019-08-30 01:26:24 +0300 |
commit | 2d69c4db4db25e256c22b8fd544dc7b95d71da9c (patch) | |
tree | 4a0f35c6b88b92305d460f4ebbd4d81619f1def0 /errors.go |
Initial
Diffstat (limited to 'errors.go')
-rw-r--r-- | errors.go | 8 |
1 files changed, 8 insertions, 0 deletions
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 +) |