faker
faker copied to clipboard
Custom Data Make
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.