Documentation
¶
Index ¶
Constants ¶
View Source
const ( CountryCodeNetherlands = "NL" CountryCodeGermany = "DE" CountryCodeAustria = "AT" CountryCodeSwitzerland = "CH" CountryCodeBelgium = "BE" CountryCodeIreland = "IE" CountryCodeSpain = "ES" CountryCodeFrance = "FR" CountryCodeItaly = "IT" IBANLengthNetherlands = 18 IBANLengthGermany = 22 IBANLengthAustria = 20 IBANLengthSwitzerland = 21 IBANLengthBelgium = 16 IBANLengthIreland = 22 IBANLengthSpain = 24 IBANLengthFrance = 27 IBANLengthItaly = 27 )
View Source
const IBANMaxLength = 34
Variables ¶
View Source
var Generators map[string]Generator = map[string]Generator{ CountryCodeNetherlands: GenericGenerator{CountryCode: CountryCodeNetherlands, Banks: dutchBanks, AccountNumberLength: IBANLengthNetherlands}, CountryCodeGermany: GenericGenerator{CountryCode: CountryCodeGermany, Banks: germanBanks, AccountNumberLength: IBANLengthGermany}, CountryCodeIreland: GenericGenerator{CountryCode: CountryCodeIreland, Banks: irishBanks, AccountNumberLength: IBANLengthIreland}, CountryCodeAustria: GenericGenerator{CountryCode: CountryCodeAustria, Banks: austrianBanks, AccountNumberLength: IBANLengthAustria}, CountryCodeSwitzerland: GenericGenerator{CountryCode: CountryCodeSwitzerland, Banks: swissBanks, AccountNumberLength: IBANLengthSwitzerland}, CountryCodeBelgium: BelgiumGenerator{}, CountryCodeSpain: SpainGenerator{}, CountryCodeFrance: FranceGenerator{}, CountryCodeItaly: ItalyGenerator{}, }
Functions ¶
This section is empty.
Types ¶
type BelgiumGenerator ¶
type BelgiumGenerator struct{}
func (BelgiumGenerator) Generate ¶
func (g BelgiumGenerator) Generate() IBAN
type FranceGenerator ¶
type FranceGenerator struct{}
func (FranceGenerator) Generate ¶
func (g FranceGenerator) Generate() IBAN
type GenericGenerator ¶
DutchIBANGenerator generates IBANs for countries that do not have a checksum for the account number and only use the IBAN checksum.
func (GenericGenerator) Generate ¶
func (g GenericGenerator) Generate() IBAN
type IBAN ¶
type IBAN []byte
International Bank Account Number.
func FromString ¶
func (IBAN) CheckDigits ¶
func (IBAN) CountryCode ¶
type ItalyGenerator ¶
type ItalyGenerator struct{}
func (ItalyGenerator) Generate ¶
func (g ItalyGenerator) Generate() IBAN
type SpainGenerator ¶
type SpainGenerator struct{}
func (SpainGenerator) Generate ¶
func (g SpainGenerator) Generate() IBAN
Click to show internal directories.
Click to hide internal directories.