regexp

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package regexp provides a mockable wrapper for regexp.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Compile

func (*Impl) Compile(expr string) (*regexp.Regexp, error)

func (*Impl) CompilePOSIX

func (*Impl) CompilePOSIX(expr string) (*regexp.Regexp, error)

func (*Impl) Match

func (*Impl) Match(pattern string, b []byte) (matched bool, err error)

func (*Impl) MatchReader

func (*Impl) MatchReader(pattern string, r io.RuneReader) (matched bool, err error)

func (*Impl) MatchString

func (*Impl) MatchString(pattern string, s string) (matched bool, err error)

func (*Impl) MustCompile

func (*Impl) MustCompile(str string) *regexp.Regexp

func (*Impl) MustCompilePOSIX

func (*Impl) MustCompilePOSIX(str string) *regexp.Regexp

func (*Impl) QuoteMeta

func (*Impl) QuoteMeta(s string) string

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
}

Directories

Path Synopsis
Package syntax provides a mockable wrapper for regexp/syntax.
Package syntax provides a mockable wrapper for regexp/syntax.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳