Documentation
¶
Index ¶
- Constants
- func CloneBool(datum *bool) *bool
- func CloneFloat64(datum *float64) *float64
- func CloneInt(datum *int) *int
- func CloneString(datum *string) *string
- func CloneStringArray(datum *[]string) *[]string
- func CloneTime(datum *time.Time) *time.Time
- 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 NewVariableString(minimumLength int, maximumLength int, charset string) string
- func RandomBool() bool
- func RandomFloat64FromArray(array []float64) float64
- func RandomFloat64FromRange(minimum float64, maximum float64) float64
- func RandomIntFromArray(array []int) int
- func RandomIntFromRange(minimum int, maximum int) int
- func RandomStringArrayFromArray(minimumLength int, maximumLength int, duplicates bool, array []string) []string
- func RandomStringFromArray(array []string) string
- func TimeMaximum() time.Time
- func TimeMinimum() time.Time
- 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 NewVariableString ¶
func RandomBool ¶ added in v1.26.0
func RandomBool() bool
func RandomFloat64FromArray ¶ added in v1.26.0
func RandomFloat64FromRange ¶ added in v1.24.0
func RandomIntFromArray ¶ added in v1.26.0
func RandomIntFromRange ¶ added in v1.24.0
func RandomStringArrayFromArray ¶ added in v1.26.0
func RandomStringFromArray ¶ added in v1.26.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.