Documentation ¶
Overview ¶
Package randomdata implements a bunch of simple ways to generate (pseudo) random data
Index ¶
- Constants
- type Lorem
- func (self *Lorem) Email() string
- func (self *Lorem) FirstName(gender int) string
- func (self *Lorem) FullName(gender int) string
- func (self *Lorem) Host() string
- func (self *Lorem) LastName() string
- func (self *Lorem) Paragraph(min, max int) string
- func (self *Lorem) Sentence(min, max int) string
- func (self *Lorem) Url() string
- func (self *Lorem) Word(min, max int) string
Constants ¶
View Source
const ( Male int = 0 Female int = 1 RandomGender int = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lorem ¶
type Lorem struct {
// contains filtered or unexported fields
}
func (*Lorem) FullName ¶
Returns a combinaton of FirstName LastName randomized, gender decides the gender of the name
Click to show internal directories.
Click to hide internal directories.