regen

package
v1.2.1-sp2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllRunes         []rune
	AllRunesNL       []rune
	AllRunesAsString []string
)

Functions

func Generate

func Generate(pattern string) ([]string, error)

func GenerateOne

func GenerateOne(pattern string) ([]string, error)

func MustGenerate

func MustGenerate(pattern string) []string

func ProductString

func ProductString(sets ...[]string) []string

Types

type CaptureGroupHandler

type CaptureGroupHandler func(index int, name string, group *syntax.Regexp, generator Generator, args *GeneratorArgs) []string

type Generator

type Generator interface {
	Generate() []string
	String() string
}

func NewGenerator

func NewGenerator(pattern string, inputArgs *GeneratorArgs) (generator Generator, err error)

func NewGeneratorOne

func NewGeneratorOne(pattern string, inputArgs *GeneratorArgs) (geneator Generator, err error)

type GeneratorArgs

type GeneratorArgs struct {
	Flags               syntax.Flags
	CaptureGroupHandler CaptureGroupHandler
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL