account

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

Account library

Helps generating accounts using IBAN approach with checksum

Initial design - 20 alpha-numerical representation:

  • Any first to letters - interpreated as country
  • 2 digits - control sum
  • Any two letters - interpreated as organization
  • "AC" - identifying account
  • 12 digits - account number from 1 to 999_999_999_999

Examples:

  • KZ98TPAC000007399051

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCouldNotGenerate = errors.New("Cound not generate account number out of id")
View Source
var ErrCouldNotParseBigInteger = errors.New("Cound not parse big integer")
View Source
var ErrIdOutOfRange = errors.New("Id out of range")
View Source
var ErrInvalidAccountNumber = errors.New("Invalid account number")
View Source
var ErrInvalidArgument = errors.New("Invalid input arguments")

Functions

func CreateAccountNumber

func CreateAccountNumber(country string, organization string, id int64) (*string, error)

limitation up to 999 999 999 999 accounts

func IsValid

func IsValid(account string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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