Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolSelector ¶
func NewBoolSelector ¶
func NewBoolSelector() BoolSelector
type BoolSelectorImpl ¶
type BoolSelectorImpl struct{}
func (*BoolSelectorImpl) Random ¶
func (b *BoolSelectorImpl) Random() bool
func (*BoolSelectorImpl) WithProbability ¶
func (b *BoolSelectorImpl) WithProbability(probability float64) bool
type DateSelector ¶
type DateSelector interface { Before(moment time.Time, period time.Duration) time.Time BeforeNow(after time.Time) time.Time After(moment time.Time, period time.Duration) time.Time Between(start, end time.Time) time.Time }
func NewDateSelector ¶
func NewDateSelector() DateSelector
type DateSelectorImpl ¶
type DateSelectorImpl struct{}
type SliceSelector ¶
func NewSliceSelector ¶
func NewSliceSelector() SliceSelector
type SliceSelectorImpl ¶
type SliceSelectorImpl struct{}
func (*SliceSelectorImpl) Exponential ¶
func (s *SliceSelectorImpl) Exponential(length int) int
func (*SliceSelectorImpl) Random ¶
func (s *SliceSelectorImpl) Random(length int) int
Click to show internal directories.
Click to hide internal directories.