pattern

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 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 Pattern

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

func CompilePattern

func CompilePattern(s string) *Pattern

func (*Pattern) Match

func (c *Pattern) Match(path string) bool

match exact

func (*Pattern) MatchPrefix

func (c *Pattern) MatchPrefix(path string) bool

type Patterns

type Patterns []*Pattern

func CompilePatterns

func CompilePatterns(patterns []string) Patterns

func (Patterns) MatchAny

func (c Patterns) MatchAny(path string) bool

func (Patterns) MatchAnyPrefix

func (c Patterns) MatchAnyPrefix(path string) bool

Jump to

Keyboard shortcuts

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