An implementation of the Luhn mod N algorithm for Go
A learning project for Go by implementing Luhn mod N check digig algorithm. Should allow check digit generation & validation of numbers in various bases (10,16,36)
go get https://github.com/glennsb/luhnmodn
luhnmodn.Checksummed("7992739871",10) //Get back a string 79927398713
luhnmodn.Valid("d4fkd51a39",36) //false
luhnmodn.Valid("d4kfd51a39",36) //true
(c) 2013 Stuart Glenn under MIT license