Documentation ¶
Index ¶
- type Flux
- func (f *Flux) Any(value string) *Flux
- func (f *Flux) Anything() *Flux
- func (f *Flux) AnythingBut(value string) *Flux
- func (f *Flux) Clear() *Flux
- func (f *Flux) Compile() (*regexp.Regexp, error)
- func (f *Flux) Digits() *Flux
- func (f *Flux) Either(values ...string) *Flux
- func (f *Flux) EndOfLine() *Flux
- func (f *Flux) Find(value string) *Flux
- func (f *Flux) IgnoreCase() *Flux
- func (f *Flux) Length(min, max int) *Flux
- func (f *Flux) Letters() *Flux
- func (f *Flux) LineBreak() *Flux
- func (f *Flux) Match(value string) (bool, error)
- func (f *Flux) MatchNewLine() *Flux
- func (f *Flux) Maybe(value string) *Flux
- func (f *Flux) Min(min int) *Flux
- func (f *Flux) Multiline() *Flux
- func (f *Flux) MustCompile() *regexp.Regexp
- func (f *Flux) NamedGroup(name, value string) *Flux
- func (f *Flux) NamedMatches(s string) (map[string]string, error)
- func (f *Flux) Once() *Flux
- func (f *Flux) OneLine() *Flux
- func (f *Flux) OrTry() *Flux
- func (f *Flux) Range(values ...string) *Flux
- func (f *Flux) RawGroup(value string) *Flux
- func (f *Flux) Replace(src, repl string) string
- func (f *Flux) StartOfLine() *Flux
- func (f *Flux) String() string
- func (f *Flux) Tab() *Flux
- func (f *Flux) Then(value string) *Flux
- func (f *Flux) Word() *Flux
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flux ¶
type Flux struct {
// contains filtered or unexported fields
}
func (*Flux) AnythingBut ¶
Matches anything but the given arguments
func (*Flux) Either ¶
Takes multiple arguments are creates an OR list. Output would be one|two|three etc
func (*Flux) Find ¶
-------------------------------------------------------------------------------- @=LANGUAGE -------------------------------------------------------------------------------- Alias to Flux#then
func (*Flux) MatchNewLine ¶
func (*Flux) MustCompile ¶
To reuse the compiled regexp regexp.MustCompile
func (*Flux) NamedMatches ¶
returns a map with all named matches experimental.... (Currently Only for groups added with #NamedGroup(name, rawGroup))
func (*Flux) Range ¶
Creates a range character class You can create a-z0-9 by calling Flux.range("a", "z", "0", "9")
func (*Flux) StartOfLine ¶
-------------------------------------------------------------------------------- MODIFIERS -------------------------------------------------------------------------------- Helper for the ^ prefix