faker icon indicating copy to clipboard operation
faker copied to clipboard

Define arguments for custom tags

Open filipegorges opened this issue 5 years ago • 0 comments

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

filipegorges avatar Jun 16 '20 20:06 filipegorges