wildcard

package
v0.0.0-...-0212348 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: GPL-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 Pattern

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

Pattern represents a wildcard pattern

func CompilePattern

func CompilePattern(src string) (*Pattern, error)

CompilePattern convert wildcard string to Pattern

func (*Pattern) IsMatch

func (p *Pattern) IsMatch(s string) bool

IsMatch returns whether the given string matches pattern

Jump to

Keyboard shortcuts

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