iban

package
v0.0.0-...-09bcab8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2022 License: Unlicense Imports: 6 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountrySettings

type CountrySettings struct {
	// Length of IBAN code for this country
	Length int

	// Format of BBAN part of IBAN for this country
	Format string
}

CountrySettings contains length for IBAN and format for BBAN

type IBAN

type IBAN struct {
	// Full code
	Code string

	// Full code prettyfied for printing on paper
	PrintCode string

	// Country code
	CountryCode string

	// Check digits
	CheckDigits string

	// Country settings
	CountrySettings *CountrySettings

	// Country specific bban part
	BBAN string
}

IBAN struct

func NewIBAN

func NewIBAN(s string) (*IBAN, error)

NewIBAN create new IBAN with validation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL