Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringGenerator ¶
type StringGenerator struct {
// contains filtered or unexported fields
}
StringGenerator holds the parameters required for generating strings randomly.
func NewStringGenerator ¶
func NewStringGenerator(base string) *StringGenerator
NewStringGenerator returns a new StringGenerator with base as its character pool.
func (*StringGenerator) Generate ¶
func (sg *StringGenerator) Generate(length int) *string
Generate (very efficiently) generates a string of length characters. Credit to: https://stackoverflow.com/a/31832326
Click to show internal directories.
Click to hide internal directories.