{"repo":"jaswdr/faker","free":true,"listed":false,"github":"https://github.com/jaswdr/faker","clone":"git clone https://github.com/jaswdr/faker.git","description":":rocket: Ultimate fake data generator for Go with zero dependencies","language":"Go","stars":644,"topics":["go","golang","fake","faker-generator","fake-data","hacktoberfest","hacktoberfest2021","contributions-welcome","open-source","faker"],"license":"MIT","category":"databases-storage","readme_excerpt":"Faker is a Go library that generates fake data for you. Whether you need to bootstrap your database, create good-looking XML documents, fill-in your persistence to stress test it, or anonymize data taken from a production service, Faker is for you. Faker is heavily inspired by PHP\"s Faker Faker requires Go = 1.22 for 2.X Test it directly from your browser Start at https://play.golang.org/p/JpTagDGBaHK Installation Add this to your Go file And run go get to fetch the package. Basic Usage Use faker.New() to create and initialize a faker generator, which can generate data by accessing properties named after the type of data you want. Even if this example shows a method access, each call to fake.Name() yields a different (random) result. You can also generate a profile image. Generate fake data using Structs Generate random placeholder images using LoremFlickr Generate profile images using ThisPersonDoesNotExist See more formatters in docs Generator Catalog Access generators via f := faker.New() then f. (). () . Provider Key methods Description ---------- ------------- ------------- Person() Name , FirstName , LastName , SSN , Contact , Image People and identity Address() Address , City , State , ZipCode , Latitude , Longitude US-style addresses Phone() Number , E164Number , TollFreeNumber Phone numbers Internet() Email , URL , IPv4 , IPv6 , Password , UserAgent Web and network data Company() Name , CatchPhrase , JobTitle , EIN Business data Payment() CreditCardType , CreditCardN","default_branch":null,"files":null,"tree":[],"storefront":"/r/jaswdr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jaswdr/faker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}