forked from persian-tools/go-persian-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Amir Iranmanesh edited this page Aug 11, 2026
·
3 revisions
An anthology of tools for working with Persian (Iranian) data in Go.
The module has no dependencies. go.mod lists nothing and there is no
go.sum — everything is the standard library and this repository.
| Package | What it does |
|---|---|
| text | Normalize Persian text, fold Arabic look-alikes, fix keyboard layouts, romanize |
| digit | Convert digit sets, group and spell numbers, format Toman and Rial |
| bank | Validate card numbers, resolve banks, validate Sheba (IBAN) codes |
| nationalid | Validate national numbers (code-e Melli), resolve city and province |
| phonenumbers | Validate Iranian mobiles, normalize prefixes, resolve operators |
| bill | Determine a utility bill's type, amount and barcode; validate its id |
go get github.com/amiranmanesh/go-persian-tools@latestRequires Go 1.22+. Import only the sub-packages you need.
The full API reference lives on pkg.go.dev. This wiki is the narrative guide.
Packages
Project