https://github.com/tidwall/match
Simple string pattern matcher for Go
https://github.com/tidwall/match
Last synced: 3 months ago
JSON representation
Simple string pattern matcher for Go
- Host: GitHub
- URL: https://github.com/tidwall/match
- Owner: tidwall
- License: mit
- Created: 2016-08-30T14:18:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T07:39:41.000Z (almost 2 years ago)
- Last Synced: 2025-08-21T13:39:05.011Z (5 months ago)
- Language: Go
- Size: 21.5 KB
- Stars: 129
- Watchers: 10
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Match
[](https://godoc.org/github.com/tidwall/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
```go
match.Match("hello", "*llo")
match.Match("jello", "?ello")
match.Match("hello", "h*o")
```
## Contact
Josh Baker [@tidwall](http://twitter.com/tidwall)
## License
Match source code is available under the MIT [License](/LICENSE).