faker
faker copied to clipboard
Go (Golang) Fake Data Generator for Struct. [Notes]This repository is archived, moved to the new repository https://github.com/go-faker/faker
For the cases when you cant use struct tags (eg struct is from 3d-party) it would be nice to have an option to ignore some fields by it's name or...
Sometimes it is useful to generate randomly optional fields, such as the last name (but really - almost any field). Is it possible to do something like this: ```go firstName...
original `FakeData()` will cause stack overflow when it handling recursive type: ```go type BinaryTreeNode struct { Val int Left *BinaryTreeNode Right *BinaryTreeNode } func TestFakeData_RecursiveType(t *testing.T) { toJSON := func(val...
``` phone.go:70:47: SA4030: (*math/rand.Rand).Intn(n) generates a random value 0
Hello there. The library is giving me `interface{} not allowed` errors on generic structs. Is the library compatible with go 1.18?
boundary tag support increment/decrement from start to end
**Bitcoin** address would take up 26-35, [see here for the information from Bitcoin wiki](https://en.bitcoin.it/wiki/Invoice_address) > A Bitcoin invoice address, or simply invoice, is an identifier of 26-35 alphanumeric characters, beginning...
Right now, `slice_len` does not actually work for a slice of integers/bytes, despite what the example has: https://github.com/bxcodec/faker/blob/master/example_with_tags_slicelength_test.go If you add a slice of integers to the test: https://github.com/bxcodec/faker/blob/master/faker_test.go#L650 It...
Hi, basically this is a repost of #138. I can't access your functions defined at [random\_source.go](https://github.com/bxcodec/faker/blob/master/random_source.go) and being able to pass my instance of math.Rand to the whole application (for...