genutil

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2021 License: LGPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixFloat

func FixFloat(val float64) func() float64

func FixInt

func FixInt(val int) func() int

func FixStr

func FixStr(str string) func() string

func FixTime

func FixTime(val time.Time) func() time.Time

func FixUint

func FixUint(val uint) func() uint

func Now

func Now(loc *time.Location) func() time.Time

func RandAlph

func RandAlph(n int) func() string

func RandAlphSet

func RandAlphSet(n int, alphs string) func() string

func RandBool

func RandBool(ratio float64) func() bool

func RandFirstName

func RandFirstName(gender int) func() string

func RandFloat

func RandFloat(min, max float64) func() float64

func RandFloatSet

func RandFloatSet(set ...float64) func() float64

func RandInt

func RandInt(min, max int) func() int

func RandIntSet

func RandIntSet(set ...int) func() int

func RandName

func RandName(gender int) func() string

func RandStrSet

func RandStrSet(set ...string) func() string

func RandTime

func RandTime(min, max time.Time) func() time.Time

func RandUUID

func RandUUID() func() string

func RandUint

func RandUint(min, max uint) func() uint

func RandUintSet

func RandUintSet(set ...uint) func() uint

func SeqFloat

func SeqFloat(start float64, delta float64) func() float64

func SeqFloatSet

func SeqFloatSet(set ...float64) func() float64

func SeqInt

func SeqInt(start int, delta int) func() int

func SeqIntSet

func SeqIntSet(set ...int) func() int

func SeqStrSet

func SeqStrSet(set ...string) func() string

func SeqTime

func SeqTime(t time.Time, delta time.Duration) func() time.Time

func SeqTimeSet

func SeqTimeSet(set ...time.Time) func() time.Time

func SeqUint

func SeqUint(start uint, delta uint) func() uint

func SeqUintSet

func SeqUintSet(set ...uint) func() uint

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL