Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rand ¶
type Rand interface {
// Rand returns random generated string with settled options.
Rand(...RandOpt) string
// SetDict sets dict of string randomizer.
SetDict(RandDict) Rand
// SetSize sets size of string randomizer.
SetSize(RandSize) Rand
// contains filtered or unexported methods
}
Rand describes string randomizer interface.
type RandDict ¶
type RandDict string
RandDict describes dictionary option of string randomizer.
const (
DefaultRandDict RandDict = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
)
Click to show internal directories.
Click to hide internal directories.