Documentation ¶
Index ¶
- Constants
- func CloneFloat64(datum *float64) *float64
- func CloneInt(datum *int) *int
- func CloneString(datum *string) *string
- func CloneStringArray(datum *[]string) *[]string
- func NewString(length int, charset string) string
- func NewText(minimumLength int, maximumLength int) string
- func NewTime() time.Time
- func NewTimeInRange(earliest time.Time, latest time.Time) time.Time
- func NewTimeZone() string
- func NewVariableString(minimumLength int, maximumLength int, charset string) string
- func RandomFloat64FromRange(minimum float64, maximum float64) float64
- func RandomIntFromRange(minimum int, maximum int) int
- func RandomStringArrayFromStringArray(minimumLength int, maximumLength int, duplicates bool, strs []string) []string
- func RandomStringFromStringArray(strs []string) string
- func TimeMaximum() time.Time
- func TimeMinimum() time.Time
- func TimeZones() []string
- type Mock
Constants ¶
View Source
const ( CharsetUppercase = "ABCDEFGHIJKLMNOPQRSTUVWYXZ" CharsetLowercase = "abcdefghijklmnopqrstuvwxyz" CharsetNumeric = "1234567890" CharsetWhitespace = " " CharsetSymbols = "!\"#$%&'()*+,-./:;<=>@\\]^_`{|}~" CharsetAlpha = CharsetUppercase + CharsetLowercase CharsetAlphaNumeric = CharsetUppercase + CharsetLowercase + CharsetNumeric CharsetText = CharsetAlphaNumeric + CharsetWhitespace + CharsetSymbols )
View Source
const TimeLimit = 365 * 24 * time.Hour
Variables ¶
This section is empty.
Functions ¶
func CloneFloat64 ¶ added in v1.24.0
func CloneString ¶ added in v1.24.0
func CloneStringArray ¶ added in v1.24.0
func NewTimeInRange ¶ added in v1.24.0
func NewTimeZone ¶ added in v1.24.0
func NewTimeZone() string
func NewVariableString ¶
func RandomFloat64FromRange ¶ added in v1.24.0
func RandomIntFromRange ¶ added in v1.24.0
func RandomStringArrayFromStringArray ¶ added in v1.24.0
func RandomStringFromStringArray ¶ added in v1.24.0
func TimeMaximum ¶ added in v1.24.0
func TimeMinimum ¶ added in v1.24.0
Types ¶
Click to show internal directories.
Click to hide internal directories.