Categorygithub.com/osamingo/checkdigit
modulepackage
1.0.1
Repository: https://github.com/osamingo/checkdigit.git
Documentation: pkg.go.dev

# README

checkdigit

GitHub Actions codecov Go Report Card GoDoc GitHub license

About

Provide check digit algorithms and calculators written by Go.

Provided methods

Algorithms

Calculators

Usage

See examples.

License

Released under the MIT License.

# Packages

# Functions

NewDamm returns a new Provider that implemented the Damm algorithm.
NewEAN13 returns a new Provider that implemented GTIN-13 with position correction calculator.
NewEAN8 returns a new Provider that implemented GTIN-8 with position correction calculator.
NewISBN10 returns a new Provider that implemented modulus 11 weight 10 to 2 calculator.
NewISBN13 returns a new Provider that implemented modulus 10 weight 3 calculator.
NewITF returns a new Provider that implemented GTIN-14 calculator.
NewJAN13 returns a new Provider that implemented GTIN-13 with position correction calculator.
NewJAN8 returns a new Provider that implemented GTIN-8 with position correction calculator.
NewLuhn returns a new Provider that implemented the Luhn algorithm.
NewSSCC returns a new Provider that implemented GTIN-18 calculator.
NewUPC returns a new Provider that implemented GTIN-12 with position correction calculator.
NewVerhoeff returns a new Provider that implemented the Verhoeff algorithm.

# Variables

ErrInvalidArgument is happening when given the wrong argument.

# Interfaces