Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RandexpGenerator ¶
type RandexpGenerator struct {
// contains filtered or unexported fields
}
RandexpGenerator generates random strings that match a compiled regex pattern. It uses regexp/syntax to parse the pattern, then walks the resulting AST. Safe for concurrent use: the generator is immutable after construction; callers supply their own *rand.Rand on each Generate call.
func NewRandexpGenerator ¶
func NewRandexpGenerator(pattern string) (*RandexpGenerator, error)
NewRandexpGenerator parses pattern and returns a generator ready to call Generate.
Click to show internal directories.
Click to hide internal directories.