Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Street string `json:"street" xml:"Street" fake:"{street}"` City string `json:"city" xml:"City" fake:"{city}"` Pincode string `json:"pincode" xml:"Pincode" fake:"{zip}"` State string `json:"state" xml:"State" fake:"{state}"` Country string `json:"country" xml:"Country" fake:"{country}"` }
type GenPersonOptions ¶
type Person ¶
type Person struct { FirstName string `json:"firstName" xml:"FirstName" fake:"{firstname}"` LastName string `json:"lastName" xml:"LastName" fake:"{lastname}"` Address `json:"address" xml:"Address"` Meta `json:"meta" xml:"Meta"` }
func GenPersons ¶
func GenPersons(n int, options ...GenPersonOptions) []*Person
GenPersons generates a `n` number of Person(s)
Click to show internal directories.
Click to hide internal directories.