faker
faker copied to clipboard
Define arguments for custom tags
Would it be possible to define arguments for custom tags?
For example:
type Employee struct {
Name string `faker:"name"`
TerminationDateSet *time.Time `faker:"termination_date, freq=10"`
}
That would avoid creating tags such as "10_percent_chance_termination_date", "20_percent_chance_termination_date", "30_percent_chance_termination_date" for different scenarios