package
Version:
v0.0.0-...-b043d65
Opens a new window with list of versions in this module.
Published: Mar 25, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package fake provides random value generators for use in generated factory functions.
Bool returns a random bool.
Bytes returns n random bytes.
Float32 returns a random float32 in [0.01, 1000.0).
Float64 returns a random float64 in [0.01, 1000.0).
Int16 returns a random int16 in [1, 32000].
Int32 returns a random int32 in [1, 2_000_000].
Int64 returns a random int64 in [1, 2_000_000_000].
JSON returns a minimal valid JSON object.
Numeric returns a random decimal string (for numeric/money columns).
Ptr returns a pointer to the given value.
String returns a random string with the given prefix.
Time returns a random time in the last 365 days, truncated to microseconds
(Postgres precision).
UUID returns a random UUID v4 string.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.