Documentation ¶
Overview ¶
Package luhn generates and validates Luhn mod N check digits.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alphabet ¶
type Alphabet string
An alphabet is a string of N characters, representing the digits of a given base N.
var (
Base32 Alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"
)
func NewAlphabet ¶ added in v1.1.0
NewAlphabet converts the given string an an Alphabet, verifying that it is correct.
Click to show internal directories.
Click to hide internal directories.