Versions in this module Expand all Collapse all v0 v0.1.0 Jun 15, 2026 Changes in this version + const DefaultMaxRepeat + var CryptoRand = &cryptoRand + type Generator struct + func Compile(pattern string) (*Generator, error) + func CompileMaxRepeat(pattern string, maxRepeat int) (*Generator, error) + func FromRegexp(re *syntax.Regexp) (*Generator, error) + func FromRegexpMaxRepeat(re *syntax.Regexp, maxRepeat int) (*Generator, error) + func MustCompile(pattern string) *Generator + func MustCompileMaxRepeat(pattern string, maxRepeat int) *Generator + func (g *Generator) Append(dst []byte) []byte + func (g *Generator) AppendWithRand(dst []byte, r Rand) []byte + func (g *Generator) Generate() string + func (g *Generator) GenerateWithRand(r Rand) string + type Rand interface + IntN func(n int) int