Skip to content

Installation

Amir Iranmanesh edited this page Aug 11, 2026 · 2 revisions

Installation

go get github.com/amiranmanesh/go-persian-tools@latest

Pin a specific version:

go get github.com/amiranmanesh/go-persian-tools@v1.0.0

Requirements

  • Go 1.23+

Importing

Import only the sub-packages you need:

import (
    "github.com/amiranmanesh/go-persian-tools/bank"
    "github.com/amiranmanesh/go-persian-tools/bill"
    "github.com/amiranmanesh/go-persian-tools/digit"
    "github.com/amiranmanesh/go-persian-tools/nationalid"
    "github.com/amiranmanesh/go-persian-tools/phonenumbers"
)

Running the demo

git clone https://github.com/amiranmanesh/go-persian-tools
cd go-persian-tools
go run ./examples

Clone this wiki locally