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

Function State

random_data.go:200–205  ·  view source on GitHub ↗

State returns a random american state

(typeOfState int)

Source from the content-addressed store, hash-verified

198
199// State returns a random american state
200func State(typeOfState int) string {
201 if typeOfState == Small {
202 return randomFrom(jsonData.StatesSmall)
203 }
204 return randomFrom(jsonData.States)
205}
206
207// Street returns a random fake street name
208func Street() string {

Callers 4

AddressFunction · 0.85
GenerateProfileFunction · 0.85
TestStateFunction · 0.85
ExampleRandomdataFunction · 0.85

Calls 1

randomFromFunction · 0.85

Tested by 2

TestStateFunction · 0.68
ExampleRandomdataFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…