Documentation
¶
Index ¶
- func Hex(len int) []byte
- func HexStr(len int) string
- func Int() int
- func IntBetween(left int, right int) int
- func Intn(n int) int
- func PIN(n int) string
- func Password(charSize int, digitSize int, symbolSize int) string
- func PasswordEasyToRemember(n int) string
- func Str(n int) string
- func StrWithBase(base string, n int) string
- func TimeBased() string
- func TimeBasedFormat(f string, opts ...*Option) string
- func Username() string
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntBetween ¶
IntBetween returns, as an int, a random number in [a,b]
func Intn ¶
Intn returns, as an int, a non-negative pseudo-random number in [0,n). It panics if n <= 0.
func PasswordEasyToRemember ¶ added in v0.3.0
func StrWithBase ¶ added in v0.3.0
func TimeBased ¶ added in v0.2.20210918085949
func TimeBased() string
TimeBased generate with time based
func TimeBasedFormat ¶ added in v0.2.20210918085949
Types ¶
Click to show internal directories.
Click to hide internal directories.