excludes

package
v0.0.0-...-3a545d7 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: AGPL-3.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 Exclusion

type Exclusion func(s string) bool

Exclusion defines an abstraction for matching paths.

func AnyExclusion

func AnyExclusion(exclusions ...Exclusion) Exclusion

AnyExclusion returns a matcher who returns true if any of the provided matchers match the string.

func AssetExclusion

func AssetExclusion() Exclusion

AssetExclusion returns a matcher who returns true when an asset file is requested.

func PrefixExclusion

func PrefixExclusion(prefix string) Exclusion

PrefixExclusion returns a matcher who returns true if the string matches the provided prefix.

func RegexExclusion

func RegexExclusion(pattern string) Exclusion

RegexExclusion returns a matcher who returns true if the string matches the provided regular expression pattern.

Jump to

Keyboard shortcuts

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