Documentation ¶
Index ¶
- func DateTimeInRangeZero() reflect.Type
- func DateZero() reflect.Type
- func DecimalZero() reflect.Type
- func FoldContains(s, sub string) bool
- func IntZero() reflect.Type
- func RandInt(r *rand.Rand, min, max int32) int32
- func StrZero() reflect.Type
- func TimeZero() reflect.Type
- type Date
- type DateTimeInRange
- type Decimal
- type Fn
- type Int
- type RuneRandom
- type Str
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FoldContains ¶
FoldContains tells if s contains sub in fold mode.
Types ¶
type DateTimeInRange ¶
type DateTimeInRange struct{}
DateTimeInRange ...
func NewRandomDateTime ¶
func NewRandomDateTime() *DateTimeInRange
NewRandomDateTime returns a new random datetime between Now() and Now() - 1 year
func (*DateTimeInRange) Value ¶
func (r *DateTimeInRange) Value() interface{}
Value returns a random time.Time in the range specified by the New method
type Decimal ¶
type Decimal struct {
// contains filtered or unexported fields
}
Decimal holds unexported data for decimal values
func NewRandomDecimal ¶
func NewRandomDecimal(column model.TableColumn, size int) *Decimal
NewRandomDecimal ...
type RuneRandom ¶
type RuneRandom struct {
// contains filtered or unexported fields
}
RuneRandom ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.