-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpersianfaker.go
31 lines (28 loc) · 915 Bytes
/
persianfaker.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package persianfaker
import (
"github.com/sepisoltani/persian-faker/providers/bank"
"github.com/sepisoltani/persian-faker/providers/bill"
"github.com/sepisoltani/persian-faker/providers/digit"
"github.com/sepisoltani/persian-faker/providers/location"
"github.com/sepisoltani/persian-faker/providers/name"
"github.com/sepisoltani/persian-faker/providers/phonenumber"
)
// DataGenerator is a facade for accessing all fake data generation functionalities.
type DataGenerator struct {
Bank *bank.Bank
Bill *bill.Bill
Digit *digit.Digit
PhoneNumber *phonenumber.PhoneNumber
Location *location.Location
Name *name.Name
}
func New() *DataGenerator {
return &DataGenerator{
Bank: &bank.Bank{},
Bill: &bill.Bill{},
Digit: &digit.Digit{},
PhoneNumber: &phonenumber.PhoneNumber{},
Location: &location.Location{},
Name: &name.Name{},
}
}