Documentation ¶
Overview ¶
Package fake provides some helper functions to generate fake data for mocking / testing
Index ¶
- func Choice[T IChoice](choices []T) T
- func Date(min time.Time, max time.Time) time.Time
- func DateAsStr(min time.Time, max time.Time, f string) string
- func Float(min float64, max float64) float64
- func FloatAsStr(min float64, max float64) string
- func Int(min int, max int) int
- func IntAsStr(min int, max int) string
- func String(length int) string
- type IChoice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DateAsStr ¶
DateAsStr creates a random date between min & max values and retusn string version of it
func FloatAsStr ¶
FloatAsStr generates a string version of a randomised float
Types ¶
Click to show internal directories.
Click to hide internal directories.