Documentation
¶
Index ¶
- Constants
- type Op
- type Optional
- type Rand
- type Regexp
- type Regexps
- func (r Regexps) Rand() string
- func (r Regexps) RandSource(rand Rand) string
- func (r Regexps) RandSourceWithRunes(rand Rand) []rune
- func (r Regexps) RandWithRunes() []rune
- func (r Regexps) Range(f func(string) bool) bool
- func (r Regexps) RangeWithRunes(f func([]rune) bool) bool
- func (r Regexps) Size() int
Constants ¶
View Source
const MoreTimes = 18
MoreTimes Maximum omitted default value
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Op ¶
type Op uint8
An Op is a single regular expression operator.
const ( OpLiteral Op OpRepeat OpAlternate )
Operators are listed in precedence order, tightest binding to weakest.
type Regexps ¶
type Regexps []*Regexp
Regexps syntax tree translated from regexp/syntax
func MustCompile ¶ added in v0.3.0
MustCompile is like Compile but panics if the expression cannot be parsed. It simplifies safe initialization of global variables holding compiled regular expressions.
func NewRegexps ¶ added in v0.3.0
NewRegexps returns regexps translated from regexp/syntax
func (Regexps) RandSource ¶ added in v0.4.0
RandSource possibilities
func (Regexps) RandSourceWithRunes ¶ added in v0.4.0
RandSourceWithRunes possibilities
func (Regexps) RandWithRunes ¶ added in v0.3.3
RandWithRunes possibilities
func (Regexps) RangeWithRunes ¶ added in v0.3.3
RangeWithRuns all possibilities
Source Files
¶
Click to show internal directories.
Click to hide internal directories.