regexpset

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegExpSet

type RegExpSet map[string]*regexp.Regexp

func New

func New(xs ...string) (RegExpSet, error)

func NewFromSnapshot

func NewFromSnapshot(snapshot []go_hook.FilterResult) (RegExpSet, error)

NewFromSnapshot expects snapshot to contain only strings, otherwise it panics

func NewFromValues

func NewFromValues(values *go_hook.PatchableValues, path string) (RegExpSet, error)

NewFromValues expects values array to contain only strings

func (RegExpSet) Add

func (s RegExpSet) Add(xs ...string) error

Add adds strings to the set

func (RegExpSet) Match

func (s RegExpSet) Match(x string) bool

Jump to

Keyboard shortcuts

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