fistandards is an implementation of a number of banking standards in Go, for the validation and handling of various data items.
For now the following is available:
- IBAN identifiers
- PAN
Coming next:
- BBAN
- BIC
- LEI (Legal Entity Identifier)
Here's some example code:
var iban iban.Iban
var normalized string
var err error
if normalized, err = iban.Set("GB82-WEST 1234 5698 7654 32"); err != nil {
fmt.Printf("%v: $v\n", normalized, err.Error())
} else {
fmt.Printf("%v is a valid IBAN\n", normalized)
}
See main.go
and the tester packages for more examples.