luhnalgorithm

package
v0.0.0-...-8b228d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package luhnalgorithm is an implementation of Luhn Algorithm, also known as the Modulus 10

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLuhnValid

func IsLuhnValid(value []int) bool

IsLuhnValid validates a number according to the Luhn formula

func Luhn

func Luhn(value []int) int

Luhn calculate the Luhn Algorithm check digit for a slice ([]int)

func Luhni

func Luhni(value int) int

Luhni calculate the Luhn Algorithm check digit for a number

func Luhns

func Luhns(value string) (int, error)

Luhns calculate the Luhn Algorithm check digit for a string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL