randomKit

package
v2.2.53 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Duration
	/*
		@return a random time.Duration between min and max: [min, max]
	*/
	Duration func(min, max time.Duration) time.Duration = grand.D
)
View Source
var (
	// Int 生成随机int
	/*
	   @return 范围: [min, max)
	*/
	Int = random.RandInt
)
View Source
var LetterString func(length int) string = random.RandString

LetterString 生成给定长度的随机字符串,只包含字母(a-zA-Z)

Functions

func Bool

func Bool() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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