fake

package
v1.42.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Brand = fake.Brand

Aliases to fake for convenience

View Source
var Character = fake.Character
View Source
var Characters = fake.CharactersN
View Source
var City = fake.City
View Source
var Color = fake.Color
View Source
var Comment = fake.EmailBody
View Source
var Company = fake.Company
View Source
var Continent = fake.Continent
View Source
var CreditCardNum = fake.CreditCardNum
View Source
var CreditCardType = fake.CreditCardType
View Source
var Day = fake.Day
View Source
var Digits = fake.DigitsN
View Source
var DomainName = fake.DomainName
View Source
var DomainZone = fake.DomainZone
View Source
var EmailAddress = fake.EmailAddress
View Source
var EmailBody = fake.EmailBody
View Source
var EmailSubject = fake.EmailSubject
View Source
var FirstName = fake.FirstName
View Source
var FullName = fake.FullName
View Source
var FullNameWithPrefix = fake.FullNameWithPrefix
View Source
var FullNameWithSuffix = fake.FullNameWithSuffix
View Source
var Gender = fake.Gender
View Source
var HexColor = fake.HexColor
View Source
var HexColorShort = fake.HexColorShort
View Source
var IPv4 = fake.IPv4
View Source
var Industry = fake.Industry
View Source
var JobTitle = fake.JobTitle
View Source
var Language = fake.Language
View Source
var LastName = fake.LastName
View Source
var Latitude = fake.Latitude
View Source
var Longitude = fake.Longitude
View Source
var Model = fake.Model
View Source
var Month = fake.Month
View Source
var MonthNum = fake.MonthNum
View Source
var MonthShort = fake.MonthShort
View Source
var Number = rand.Intn
View Source
var Paragraph = fake.Paragraph
View Source
var Paragraphs = fake.ParagraphsN
View Source
var Password = fake.Password
View Source
var Percent = rand.Float64()
View Source
var Phone = fake.Phone
View Source
var ProductName = fake.ProductName
View Source
var Rating = rand.Intn
View Source
var Sentence = fake.Sentence
View Source
var Sentences = fake.SentencesN
View Source
var SimplePassword = fake.SimplePassword
View Source
var State = fake.State
View Source
var StateAbbrev = fake.StateAbbrev
View Source
var Street = fake.Street
View Source
var StreetAddress = fake.StreetAddress
View Source
var Title = fake.Title
View Source
var TopLevelDomain = fake.TopLevelDomain
View Source
var Username = fake.UserName
View Source
var WeekDay = fake.WeekDay
View Source
var WeekDayShort = fake.WeekDayShort
View Source
var WeekdayNum = fake.WeekdayNum
View Source
var Word = fake.Word
View Source
var Words = fake.WordsN
View Source
var Year = fake.Year
View Source
var Zip = fake.Zip

Functions

func Bool

func Bool() bool

func EOSAddress

func EOSAddress() string

EOS5krVucV7EL3Q7gdQSiWahM1YkjZ1WjVeaNsBwcAWn96rgdAfzP

func EOSTransactionHash

func EOSTransactionHash() string

0xb1c0abd217193ffe64f97caedad8fa6f0f9c0265967d2ab9fb782280c928fb47

func EthereumAddress

func EthereumAddress() string

0xb1c0abd217193ffe64f97caedad8fa6f0f9c0265967d2ab9fb782280c928fb47

func Except

func Except(fake interface{}, except ...string) interface{}

Zero all fields except specified on fake

func Id

func Id() string

func Only

func Only(fake interface{}, only ...string) interface{}

Zero out non-specified fields on fake

func RandSeq

func RandSeq(n int, runes []rune) string

func SKU

func SKU() string

func Slug

func Slug() string

func TaxID

func TaxID() string

func Url

func Url() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL