The persian-faker
is a specialized Go package designed to generate realistic Persian fake data, ideal for populating
test data or simulating user data in applications that require Persian locale-specific data.
To install this package, run the following command in your terminal:
go get github.com/sepisoltani/persian-faker
Here's how you can start using the persian-faker to generate various types of fake data:
import persianfaker "github.com/sepisoltani/persian-faker"
var faker = persianfaker.New()
- Generate a random Persian first name:
var firstName = faker.Name.FirstName()
- Generate a random Persian last name:
var lastName = faker.Name.LastName()
- Generate a random Persian full name:
var fullName = faker.Name.FullName()
- Generate a random Persian sentence:
var sentence = faker.Text.Sentence()
- Generate a random Persian mobile number:
var phoneNumber = faker.PhoneNumber.PhoneNumber()
- Generate a random province:
var province = faker.Location.Province()
- Generate a random city:
var city = faker.Location.City()
- Generate a random country:
var country = faker.Location.Country()
- Generate a random address:
var address = faker.Location.Address()
- Generate a random Persian bank name:
var bankName = faker.Bank.BankName()
- Generate a random Persian bank IBAN:
var iban = faker.Bank.IBAN()
- Generate a random bank card number:
var cardNumber = faker.Bank.CardNumber()
- Generate a Persian digit:
var digit = faker.Digit.Digit()
- Generate a random bill type:
var billType = faker.Bill.BillType()
- Generate a random car plate number:
var carPlateNumber = faker.Vehicle.CarPlateNumber()
We welcome contributions to improve the package. If you have suggestions or improvements, please fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.