Documentation ¶
Index ¶
- Constants
- type EntryType
- type Part
- func NewAccountNumber(length int, char charType) Part
- func NewAccountType(length int, char charType) Part
- func NewBankCode(length int, char charType) Part
- func NewBranchCode(length int, char charType) Part
- func NewCurrency(length int, char charType) Part
- func NewIdentificationNumber(length int, char charType) Part
- func NewNationalCheckDigit(length int, char charType) Part
- func NewOwnerAccountType(length int, char charType) Part
- func NewPadding(length int, char charType) Part
- func NewPart(length int, char charType, entry EntryType) Part
- type Structure
Constants ¶
const ( // BankCode represents bank code part of iban. BankCode EntryType = iota // BranchCode represents branch code part of iban. BranchCode // AccountNumber represents account number part of iban. AccountNumber // NationalCheckDigit represents national check digit part of iban. NationalCheckDigit // AccountType represents account type part of iban. AccountType // OwnerAccountType represents owner account type part of iban. OwnerAccountType // IdentificationNumber represents identification number part of iban. IdentificationNumber // Currency represents optional currency of iban. Currency // Padding represents optional padding of iban. Padding // Num allows only numeric characters. Num charType = iota // Zero allows only zero characters. Zero // AlphaUpper allows only uppercase alphabetic characters. AlphaUpper // AlphaNum allow only alphanumeric characters with any case. AlphaNum )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Part ¶
Part represents a substring part of bban.
func NewAccountNumber ¶
NewAccountNumber creates a new Part with AccountNumber EntryType.
func NewAccountType ¶
NewAccountType creates a new Part with AccountType EntryType.
func NewBankCode ¶
NewBankCode creates a new Part with BankCode EntryType.
func NewBranchCode ¶
NewBranchCode creates a new Part with BranchCode EntryType.
func NewCurrency ¶ added in v0.2.0
NewCurrency creates a new Part with Currency EntryType.
func NewIdentificationNumber ¶
NewIdentificationNumber creates a new Part with IdentificationNumber EntryType.
func NewNationalCheckDigit ¶
NewNationalCheckDigit creates a new Part with NationalCheckDigit EntryType.
func NewOwnerAccountType ¶
NewOwnerAccountType creates a new Part with OwnerAccountType EntryType.
func NewPadding ¶ added in v0.2.0
NewPadding creates a new Part with Padding EntryType.
type Structure ¶
type Structure struct {
// contains filtered or unexported fields
}
Structure represents a bban structure which consists of bban Parts.
func NewStructure ¶
NewStructure creates a new Structure from given Parts.