{"repo":"brianvoe/gofakeit","free":true,"listed":false,"github":"https://github.com/brianvoe/gofakeit","clone":"git clone https://github.com/brianvoe/gofakeit.git","description":"Random fake data generator written in go","language":"Go","stars":5379,"topics":["go","data","generator","random","fake","golang","seed"],"license":"MIT","category":"cli-tools","readme_excerpt":"Gofakeit Random data generator written in go Support Merch Features - 310+ Functions!!! - Random Sources - Global Rand - Struct Generator - Custom Functions - Templates - Http Server - Command Line Tool - Zero dependencies - Benchmarks - Issue Contributors Thank you to all our Gofakeit contributors! Installation Simple Usage See full list of functions Seed If you are using the default global usage and dont care about seeding no need to set anything. Gofakeit will seed it with a cryptographically secure number. If you need a reproducible outcome you can set it via the Seed function call. Every example in this repo sets it for testing purposes. Random Sources Gofakeit has a few rand sources, by default it uses math/rand/v2 PCG which is a pseudo random number generator and is thread locked. If you want to see other potential sources you can see the sub package Source for more information. Global Rand Set If you would like to use the simple function calls but need to use something like crypto/rand you can override the default global with the random source that you want. Struct Gofakeit can generate random data for struct fields. For the most part it covers all the basic type as well as some non-basic like time.Time. Struct fields can also use tags to more specifically generate data for that field type. Fakeable types It is possible to extend a struct by implementing the Fakeable interface in order to control the generation. For example, this is useful when it is not possible to m","default_branch":null,"files":null,"tree":[],"storefront":"/r/brianvoe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/brianvoe/gofakeit/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."}