Documentation ¶
Index ¶
- func FixBytes(val []byte) func() []byte
- func FixFloat(val float64) func() float64
- func FixInt(val int) func() int
- func FixInterface(val interface{}) func() interface{}
- func FixStr(str string) func() string
- func FixTime(val time.Time) func() time.Time
- func FixUint(val uint) func() uint
- func Now(loc *time.Location) func() time.Time
- func RandAlph(n int) func() string
- func RandAlphSet(n int, alphs string) func() string
- func RandBool(ratio float64) func() bool
- func RandFirstName(gender int) func() string
- func RandFloat(min, max float64) func() float64
- func RandFloatSet(set ...float64) func() float64
- func RandInt(min, max int) func() int
- func RandIntSet(set ...int) func() int
- func RandName(gender int) func() string
- func RandStrSet(set ...string) func() string
- func RandTime(min, max time.Time) func() time.Time
- func RandUUID() func() string
- func RandUint(min, max uint) func() uint
- func RandUintSet(set ...uint) func() uint
- func SeqFloat(start float64, delta float64) func() float64
- func SeqFloatSet(set ...float64) func() float64
- func SeqInt(start int, delta int) func() int
- func SeqIntSet(set ...int) func() int
- func SeqStrSet(set ...string) func() string
- func SeqTime(t time.Time, delta time.Duration) func() time.Time
- func SeqTimeSet(set ...time.Time) func() time.Time
- func SeqUint(start uint, delta uint) func() uint
- func SeqUintSet(set ...uint) func() uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixInterface ¶ added in v1.0.2
func FixInterface(val interface{}) func() interface{}
func RandAlphSet ¶
func RandFirstName ¶
func RandFloatSet ¶
func RandIntSet ¶
func RandStrSet ¶
func RandUintSet ¶
func SeqFloatSet ¶
func SeqUintSet ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.