regexp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package regexp contains functionality for unmarshalling regular expressions from a config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Regexp

type Regexp struct {
	// contains filtered or unexported fields
}

Regexp delegates to a Regexp while enabling unmarshalling. Any unspecified / nil matcher will return vacuous truth in MatchString

func New added in v0.1.5

func New(s string) (*Regexp, error)

func (*Regexp) MatchString

func (mr *Regexp) MatchString(s string) bool

MatchString delegates matching to the regex package.

func (*Regexp) UnmarshalJSON

func (mr *Regexp) UnmarshalJSON(data []byte) error

UnmarshalJSON implementation of json.UnmarshalJSON interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL