package
4.5.0
Repository: https://github.com/go-faker/faker.git
Documentation: pkg.go.dev

# Functions

BuildOptions build all option functions into one option.
DefaultOption build the default option.
SetGenerateUniqueValues allows to set the single fake data generator functions to generate unique data.
SetIgnoreInterface allows to set a flag to ignore found interface{}s.
SetRandomMapAndSliceMaxSize sets the max size for maps and slices for random generation.
SetRandomMapAndSliceMinSize sets the min size for maps and slices for random generation.
SetRandomMapAndSliceSize sets the size for maps and slices for random generation.
SetRandomNumberBoundaries sets boundary for random number generation.
SetRandomStringLength sets a length for random string generation.
SetStringLang sets language of random string generation (LangENG, LangCHI, LangRUS, LangJPN, LangKOR, EmotEMJ).
WithCustomFieldProvider used for storing the custom provider function.
WithFieldsToIgnore used for ignoring a field when generating the fake data.
WithGenerateUniqueValues allows to set the single fake data generator functions to generate unique data.
WithIgnoreInterface allows to set a flag to ignore found interface{}s.
WithMaxGenerateStringRetries set how much tries for generating random string.
WithNilIfLenIsZero allows to set nil for the slice and maps, if size is 0.
WithRandomFloatBoundaries sets the boundary for random float value generation.
WithRandomIntegerBoundaries sets boundary random integer value generation.
WithRandomMapAndSliceMaxSize sets the max size for maps and slices for random generation.
WithRandomMapAndSliceMinSize sets the min size for maps and slices for random generation.
WithRandomStringLength sets a length for random string generation.
WithRecursionMaxDepth used for configuring the max depth of recursion struct for faker.
WithSliceMapRandomToZero Sets random integer generation to zero for slice and maps.
WithStringLanguage sets language of random string generation (LangENG, LangCHI, LangRUS, LangJPN, LangKOR, EmotEMJ).
WithTagName sets the tag name to use.

# Structs

MaxDepthOption used for configuring the max depth of nested struct for faker.
Options represent all available option for faker.

# Type aliases

OptionFunc define the options contract.