wildcard

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(pattern, s string) bool

Match - finds whether the text matches/satisfies the pattern string. supports '*' and '?' wildcards in the pattern string. case insensitive. unlike path.Match(), considers a path as a flat name space while matching the pattern.

func MatchFold

func MatchFold(pattern, s string) bool

MatchFold - finds whether the text matches/satisfies the pattern string. supports '*' and '?' wildcards in the pattern string. unlike path.Match(), considers a path as a flat name space while matching the pattern.

func MatchSimple

func MatchSimple(pattern, s string) bool

MatchSimple - finds whether the text matches/satisfies the pattern string. supports only '*' wildcard in the pattern. considers a file system path as a flat name space.

func MatchSimpleFold

func MatchSimpleFold(pattern, s string) bool

MatchSimpleFold - finds whether the text matches/satisfies the pattern string. supports only '*' wildcard in the pattern. case insensitive. considers a file system path as a flat name space.

Types

This section is empty.

Jump to

Keyboard shortcuts

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