Skip to content
/ damm Public

Damm is a small Go library which implements the Damm check digit algorithm.

License

Notifications You must be signed in to change notification settings

umahmood/damm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Damm Algorithm

Damm is a small Go library which implements the Damm check digit algorithm.

Installation

go get github.com/umahmood/damm

cd $GOPATH/src/github.com/umahmood/damm

go test ./...

Usage

package main

import (
    "fmt"

    "github.com/umahmood/damm"
)

func main() {
    c := damm.Calc(572) // c = 5724

    fmt.Println(damm.Validate(c)) // output: true
}

Documentation

http://godoc.org/github.com/umahmood/damm

License

See the LICENSE file for license rights and limitations (MIT).

About

Damm is a small Go library which implements the Damm check digit algorithm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages