Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyAlphabet is the error returned by NewString when providing an // empty alphabet string. ErrEmptyAlphabet = errors.New("alphabet should not be empty") // ErrNotASCIIAlphabet is the error returned by NewString when the alphabet // contains some non-ASCII runes. ErrNotASCIIAlphabet = errors.New("alphabet should only contain ASCII runes") )
Functions ¶
This section is empty.
Types ¶
type String ¶
type String struct {
// contains filtered or unexported fields
}
String is a generator of ASCII string candidates of the specified length and in which runes are randomly chosen from an alphabet
Click to show internal directories.
Click to hide internal directories.