Versions in this module Expand all Collapse all v0 v0.4.0 Dec 14, 2021 Changes in this version type Faker + func (f *Faker) AddParams(key string, value interface{}, overwrite bool) + func (f *Faker) CarLicense() string + func (f *Faker) ISBN10() string + func (f *Faker) ISBN13() string + func (f *Faker) UserAgent() string + type UserAgent struct + Browser string + PlatForm string + func (u *UserAgent) Generate(allRandom bool) string v0.2.1 Nov 26, 2021 Changes in this version + type Carlicense struct + Locale string + func (c *Carlicense) Generate() string + type ISBN struct + ISBN10 string + ISBN13 string + func (isbn *ISBN) Generate() + func (isbn *ISBN) ToString() string type Mobile + Supplier string v0.1.0 Nov 25, 2021 Changes in this version + type Faker struct + Args []float64 + Gender bool + Locale string + func (f *Faker) CompanyName() string + func (f *Faker) Init() + func (f *Faker) IpAddr(withport bool) string + func (f *Faker) Job() string + func (f *Faker) Lorem(uclike bool) string + func (f *Faker) Mobile() string + func (f *Faker) Nickname() string + func (f *Faker) PersonName() string + func (f *Faker) Profile(useCache bool) string + func (f *Faker) SSN() string + func (f *Faker) School() string + type Generators struct + Gaddress *Address + Gmobile *Mobile + Gpname *PersonName + Gssn *SSN + type Lorem struct + Content string + LikeUC bool + Locale string + MaxLength int + Type int + func (lorem *Lorem) Generate() + func (lorem *Lorem) ToString() string + type Nickname struct + Gender bool + Prefix string + Suffix string + func (nickname *Nickname) Generate() + func (nickname *Nickname) ToString() string v0.0.5 Nov 24, 2021 Changes in this version + var Version = "0.0.5" + func GenerateIpV4Address(containDNSs bool) string + func GeneratePort(max int) string + func GenerateRandomAddress() + func GenerateRandomDate(max, min int) (string, int) + func IsIpV4Valid(ip string, containDNSs bool) bool + type Address struct + Args []float64 + Locole string + PostcodeLength int + UseWeighting bool + func (addr *Address) Address(args ...float64) string + func (addr *Address) BuildingNumber(length int) string + func (addr *Address) City(args ...float64) string + func (addr *Address) District(args ...float64) string + func (addr *Address) Province(args ...float64) string + func (addr *Address) StreetAddress(length int, args ...float64) string + func (addr *Address) StreetName(args ...float64) string + type BaseAddress interface + BuildingNumber func(int) string + City func(args ...float64) string + Country func() string + District func(args ...float64) string + Postcode func(int) string + Province func(args ...float64) string + StreetAddress func(args ...float64) string + StreetName func(args ...float64) string + type Company struct + Args []float64 + Locale string + func (company *Company) Generate() string + type Experience struct + Content string + EndTime string + Institution string + StartTime string + func GenerateSchoolExperience(grades int, currentAge int, locale string) ([]Experience, int) + func GenerateWorkExperiences(times, years int, locale string) []Experience + func (e *Experience) ToString() string + type Job struct + Locale string + func (job *Job) Generate() string + type Location struct + Latitude string + Longitude string + NS string + WE string + func (location *Location) GetPositon() string + type Mobile struct + City string + Locale string + func (mobile *Mobile) Generate(supplier string) string + type PersonName struct + Firstname string + Gender bool + Lastname string + Locale string + Pinyin string + func (p *PersonName) Generate(args ...float64) + func (p *PersonName) ToString(withPinyin bool) string + type Profile struct + Age int + Description string + EducationExperiences []Experience + Gender bool + HomeAddress string + IdNumber string + Locale string + MobileNumber string + Name string + WorkExperiences []Experience + func (p *Profile) FormatExperice(t int) string + func (p *Profile) Generate() + func (p *Profile) ToString() string + type SSN struct + Gender bool + Locale string + MaxAge int + MinAge int + func (ssn *SSN) Generate() string + func (ssn *SSN) GenerateSequenceCode() string + type School struct + Locale string + Type int + func (s *School) Generate() string v0.0.2 Nov 22, 2021