wildcard

package
v0.0.0-...-6438891 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: MIT Imports: 0 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

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