Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Faker ¶
type Faker struct {
// contains filtered or unexported fields
}
Faker for generating requisites of organizations
type INN ¶
type INN struct { // Region code (2 digits) RegionCode uint // Inspection code of tax authority that assigned INN (4 digits) Inspection uint // Serial number of entry about the person in // the territorial section of the Unified State Register of Taxpayers // of the tax authority that assigned the INN // (5 digits - for legal entities) // (6 digits - for private persons) SerialNumber uint // Checksum number // (1 digits - for legal entities) // (2 digits - for private persons) // calculated according to a special algorithm established by the Federal Tax Service Checksum uint // Type indicates type of organization Type OrgType // Value of INN Value uint64 }
INN represents individual taxpayer number
type OGRN ¶
type OGRN struct { // Sign of attribution of state registration number (1 digit) // (is equal to 1 or 5 for legal entities) // (is equal to 3 for individual entrepreneurs) Sign uint // YearEnd is last two digits of year of entry in state register (2 digits) YearEnd uint // Region code (2 digits) RegionCode uint // EntryNumber in the Unified State Register of Legal Entities during the year // (7 digits - for legal entities) // (9 digits - for individual entrepreneurs) EntryNumber uint // Checksum number (1 digit) Checksum uint // Type indicates type of organization Type OrgType // Value of OGRN Value uint64 }
OGRN represents main state registration number
type Option ¶
type Option func(*Faker)
Option is a function that configures a Faker instance
func WithRandSource ¶
func WithRandSource(src rand.Source) Option
WithRandSource sets the custome random source for the Faker
type OrgType ¶
type OrgType uint
OrgType represents type of organization 1 - legal entity 2 - individual entrepreneur
Click to show internal directories.
Click to hide internal directories.