Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages