9
)
10
12
>
// We need this option to prevent faker.FakeData from returning an error for any struct that has an interface{} field.
13
>
faker.SetIgnoreInterface(true)
14
>
// We need this option to prevent faker from taking a long time while generating random data for structs that have
15
>
// map or slice fields. This is especially relevant for persistence.ShardInfo, which takes about 1s without this
16
>
// option, but only ~100µs with it.
17
>
if err := faker.SetRandomMapAndSliceMaxSize(2); err != nil {
18
panic(err)
19
}