matchlist

package
v1.15.6 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matchlist

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

Matchlist represents a block or allow list

func NewMatchlist

func NewMatchlist(rules ...string) (*Matchlist, error)

NewMatchlist creates a new block or allow list

func (*Matchlist) Match

func (b *Matchlist) Match(u string) bool

Match will matches

Jump to

Keyboard shortcuts

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