{"repo":"go-faker/faker","free":true,"listed":false,"github":"https://github.com/go-faker/faker","clone":"git clone https://github.com/go-faker/faker.git","description":"Go (Golang) Fake Data Generator for Struct, previously https://github.com/bxcodec/faker","language":"Go","stars":859,"topics":["fake-data","faker","golang","golang-library","testing-library","testing-tools"],"license":"MIT","category":"dev-tools","readme_excerpt":"Docs faker Struct Data Fake Generator Faker will generate you a fake data based on your Struct. Index - Support - Getting Started - Example - Limitation - Contribution Support You can file an Issue. See documentation in Go.Dev Getting Started Download Example --- - Using Struct's tag: - basic tags: example with tags test.go - length and bounds: example with tags lenbounds test.go - language: example with tags lang test.go - unique: example with tags unique test.go - slice length: example with tags slicelength test.go - template (derived fields): example template tag test.go - Custom Struct's tag (define your own faker data): example custom faker test.go - Without struct's tag: example without tag test.go - Single Fake Data Function: example single fake data test.go - custom struct type providers : example custom struct test.go - large nested (& circular) struct with map & slice size limits & depth limitations : example with limits test.go DEMO --- Benchmark --- Bench To Generate Fake Data Without Tag Using Tag MUST KNOW --- The Struct Field must be PUBLIC. Support For : - pointer fields of any type - int , int8 , int16 , int32 & int64 - uint , uint8 , uint16 , uint32 & uint64 - bool - string - float32 , float64 - struct & nested struct - slice / array of any type - map of any key/value of supported types - custom struct types by registering a StructTypeProvider & implementing your own generator function. This can be used for redefined time, big.Rat, etc. See example for usage","default_branch":null,"files":null,"tree":[],"storefront":"/r/go-faker","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/go-faker/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."}