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

Custom Data Make #176

Open
winey-dev opened this issue Aug 28, 2022 · 0 comments
Open

Custom Data Make #176

winey-dev opened this issue Aug 28, 2022 · 0 comments

Comments

@winey-dev
Copy link

Hi.
I want to create data of linked relationships between internal variables.
this case

`
type Data struct {
Country string
City string
}

var data = map[string]string{
"$awsome country1": []string{"city list in awsome country1"},
"$awsome country2": []string{"city list in awsome country2"},
"$awsome country3": []string{"city list in awsome country3"},
}
`

When generating faker data
Is it possible to set a random value to the associated City value by checking the Contry value?

If you have any related tags, please let me know.

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