package
0.0.0-20240819164739-f47aed85de5a
Repository: https://github.com/unix-world/smartgo.git
Documentation: pkg.go.dev
# README
Match
Match is a very simple pattern matcher where '*' matches on any number characters and '?' matches on any one character.
Installing
go get -u github.com/tidwall/match
Example
match.Match("hello", "*llo")
match.Match("jello", "?ello")
match.Match("hello", "h*o")
Contact
Josh Baker @tidwall
License
Match source code is available under the MIT License.
# Functions
Allowable parses the pattern and determines the minimum and maximum allowable values that the pattern can represent.
IsPattern returns true if the string is a pattern.
Match returns true if str matches pattern.
MatchLimit is the same as Match but will limit the complexity of the match operation.