https://github.com/osamingo/checkdigit
Provide check digit algorithms and calculators written in Go
https://github.com/osamingo/checkdigit
checkdigit damm ean ean13 ean8 gtin isbn isbn-10 isbn-13 itf jan jan13 jan8 luhn sscc upc verhoeff
Last synced: 6 months ago
JSON representation
Provide check digit algorithms and calculators written in Go
- Host: GitHub
- URL: https://github.com/osamingo/checkdigit
- Owner: osamingo
- License: mit
- Created: 2019-04-05T09:46:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-22T13:38:45.000Z (7 months ago)
- Last Synced: 2025-03-22T14:28:53.708Z (7 months ago)
- Topics: checkdigit, damm, ean, ean13, ean8, gtin, isbn, isbn-10, isbn-13, itf, jan, jan13, jan8, luhn, sscc, upc, verhoeff
- Language: Go
- Homepage:
- Size: 42 KB
- Stars: 111
- Watchers: 0
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-go-extra - checkdigit - 04-05T09:46:36Z|2022-08-16T11:17:01Z| (Validation / Fail injection)
- awesome-go - osamingo/checkdigit
- awesome-go - osamingo/checkdigit
README
# checkdigit
[](https://github.com/osamingo/checkdigit/actions/workflows/actions.yml)
[](https://codecov.io/gh/osamingo/checkdigit)
[](https://goreportcard.com/report/osamingo/checkdigit)
[](https://godoc.org/github.com/osamingo/checkdigit)
[](https://raw.githubusercontent.com/osamingo/checkdigit/master/LICENSE)## About
Provide check digit algorithms and calculators written by Go.
## Provided methods
### Algorithms
- [Luhn](https://en.wikipedia.org/wiki/Luhn_algorithm)
- [Verhoeff](https://en.wikipedia.org/wiki/Verhoeff_algorithm)
- [Damm](https://en.wikipedia.org/wiki/Damm_algorithm)### Calculators
- [ISBN-10](https://en.wikipedia.org/wiki/International_Standard_Book_Number)
- [ISBN-13](https://en.wikipedia.org/wiki/International_Standard_Book_Number)
- [EAN-8](https://en.wikipedia.org/wiki/EAN-8)
- [EAN-13](https://en.wikipedia.org/wiki/EAN-13)
- [JAN-8](https://en.wikipedia.org/wiki/Japanese_Article_Number)
- [JAN-13](https://en.wikipedia.org/wiki/Japanese_Article_Number)
- [ITF](https://en.wikipedia.org/wiki/Interleaved_2_of_5)
- [UPC](https://en.wikipedia.org/wiki/Universal_Product_Code)
- [SSCC](https://en.wikipedia.org/wiki/Serial_Shipping_Container_Code)## Usage
See [examples](https://godoc.org/github.com/osamingo/checkdigit#pkg-examples).
## License
Released under the [MIT License](https://github.com/osamingo/checkdigit/blob/master/LICENSE).