MCPcopy Create free account
hub / github.com/Pallinder/go-randomdata / City

Function City

random_data.go:183–185  ·  view source on GitHub ↗

City returns a random city

()

Source from the content-addressed store, hash-verified

181
182// City returns a random city
183func City() string {
184 return randomFrom(jsonData.Cities)
185}
186
187// ProvinceForCountry returns a randomly selected province (state, county,subdivision ) name for a supplied country.
188// If the country is not supported it will return an empty string.

Callers 4

AddressFunction · 0.85
GenerateProfileFunction · 0.85
TestCityFunction · 0.85
ExampleRandomdataFunction · 0.85

Calls 1

randomFromFunction · 0.85

Tested by 2

TestCityFunction · 0.68
ExampleRandomdataFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…