Categorygithub.com/wzshiming/crun
modulepackage
0.4.0
Repository: https://github.com/wzshiming/crun.git
Documentation: pkg.go.dev

# README

Generate matching strings based on regular expressions

Build Status Go Report Card GoDoc GitHub license gocover.io

Example

# Generates a number of all possible combinations of 1 to 6 digits in length
> crun "\d{1,6}"

# Generate random 5 possibilities
> crun -r -l 5 "(root|admin):[0-9]{4,5}"

Download & Install

go get -u -v github.com/wzshiming/crun/cmd/crun

License

Pouch is licensed under the MIT License. See LICENSE for the full license text.

# Packages

No description provided by the author

# Functions

Compile parses a regular expression and returns.
MustCompile is like Compile but panics if the expression cannot be parsed.
NewRegexps returns regexps translated from regexp/syntax.

# Constants

MoreTimes Maximum omitted default value.
Operators are listed in precedence order, tightest binding to weakest.
Operators are listed in precedence order, tightest binding to weakest.
Operators are listed in precedence order, tightest binding to weakest.

# Structs

Optional is optional related option for regexps.
Regexp syntax tree translated from regexp/syntax.

# Interfaces

No description provided by the author

# Type aliases

An Op is a single regular expression operator.
Regexps syntax tree translated from regexp/syntax.