Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Define arguments for custom tags #112

Open
filipegorges opened this issue Jun 16, 2020 · 0 comments
Open

Define arguments for custom tags #112

filipegorges opened this issue Jun 16, 2020 · 0 comments

Comments

@filipegorges
Copy link

filipegorges commented Jun 16, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant