package
0.0.0-20230609194936-c3b67b6bb7d9
Repository: https://github.com/codingconcepts/datagen.git
Documentation: pkg.go.dev
# Functions
Date returns a random date between two dates and formats it as a string provided by Runner.
Float returns a random 64 bit float between a minimum and maximum.
Int returns a random 64 integer between a minimum and maximum.
MakeWeightedItems creates a slice of WeightedItems and calculates the total weight.
NTimes returns a slice of empty structs of random length.
Set returns a random item from a set.
String returns a random string between two lengths.
StringF returns a random string built around a format string.
# Structs
StringFDefaults holds the default min and max values for the various StringF placeholder types.
WeightedItem represents an item value with an associated weight.
WeightedItems represents a collection of weighted items with a pre-calculated total weight.