Documentation
¶
Overview ¶
Package regexp provides a mockable wrapper for regexp.
Index ¶
- type Impl
- func (*Impl) Compile(expr string) (*regexp.Regexp, error)
- func (*Impl) CompilePOSIX(expr string) (*regexp.Regexp, error)
- func (*Impl) Match(pattern string, b []byte) (matched bool, err error)
- func (*Impl) MatchReader(pattern string, r io.RuneReader) (matched bool, err error)
- func (*Impl) MatchString(pattern string, s string) (matched bool, err error)
- func (*Impl) MustCompile(str string) *regexp.Regexp
- func (*Impl) MustCompilePOSIX(str string) *regexp.Regexp
- func (*Impl) QuoteMeta(s string) string
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Compile(expr string) (*regexp.Regexp, error) CompilePOSIX(expr string) (*regexp.Regexp, error) Match(pattern string, b []byte) (matched bool, err error) MatchReader(pattern string, r io.RuneReader) (matched bool, err error) MatchString(pattern string, s string) (matched bool, err error) MustCompile(str string) *regexp.Regexp MustCompilePOSIX(str string) *regexp.Regexp QuoteMeta(s string) string }
Click to show internal directories.
Click to hide internal directories.