Documentation
¶
Overview ¶
Package persiantools is an anthology of tools for working with Persian (Iranian) data in Go.
It is organized as a set of focused sub-packages:
- bank validate card numbers, resolve banks, and check Sheba (IBAN) codes
- bill parse and validate Iranian utility bills
- digit format numbers and convert digits to Persian words
- nationalid validate national numbers (code-e Melli) and resolve place
- phonenumbers validate and inspect Iranian mobile numbers
Import only the sub-packages you need, for example:
import "github.com/amiranmanesh/go-persian-tools/nationalid"
Directories
¶
| Path | Synopsis |
|---|---|
|
Package bill provides helpers to parse and validate Iranian utility bills (bill id / payment id pairs) and to derive their type, amount and barcode.
|
Package bill provides helpers to parse and validate Iranian utility bills (bill id / payment id pairs) and to derive their type, amount and barcode. |
|
Package digit provides helpers to format numbers with thousands separators and to convert digits into their Persian word representation.
|
Package digit provides helpers to format numbers with thousands separators and to convert digits into their Persian word representation. |
|
Command example demonstrates the go-persian-tools sub-packages.
|
Command example demonstrates the go-persian-tools sub-packages. |
|
Package nationalid validates Iranian national numbers (code-e Melli) and resolves the issuing city and province from a national id.
|
Package nationalid validates Iranian national numbers (code-e Melli) and resolves the issuing city and province from a national id. |
|
Package phonenumbers validates Iranian mobile numbers, normalizes their prefix and resolves operator details from the number's prefix.
|
Package phonenumbers validates Iranian mobile numbers, normalizes their prefix and resolves operator details from the number's prefix. |
Click to show internal directories.
Click to hide internal directories.