Go libraries for validating banking data (account or card numbers)
Returns true if account is a valid IBAN number
Returns formatted IBAN. If verify is set to true, perform IBAN validation first (by calling IsIBAN)
Returns true if number passes the Luhn validation
Follow instructions to install go. Once you have Go up and running, you can download, build and run the example using the following commands.
$ go get github.com/rafalgolarz/iban-luhn/accounts
or
$ go get github.com/rafalgolarz/iban-luhn/cards
then, assuming you have $GOPATH environmental variable set
$ cd $GOPATH/src/github.com/rafalgolarz/iban-luhn
$ go run example.go
$ cd $GOPATH/src/github.com/rafalgolarz/iban-luhn/accounts
$ go test -v
$ go test -bench=.
$ go test -count 4 -benchmem -bench=.
$ cd $GOPATH/src/github.com/rafalgolarz/bankingo/cards
$ go test -v
$ go test -bench=.
$ go test -count 4 -benchmem -bench=.