match/README.md

30 lines
557 B
Markdown
Raw Normal View History

2020-11-03 20:47:25 +03:00
# Match
2020-11-03 20:48:15 +03:00
[![GoDoc](https://godoc.org/github.com/tidwall/match?status.svg)](https://godoc.org/github.com/tidwall/match)
2016-08-30 17:19:45 +03:00
Match is a very simple pattern matcher where '*' matches on any
number characters and '?' matches on any one character.
2017-10-02 10:59:45 +03:00
2020-11-03 20:47:25 +03:00
## Installing
2016-08-30 17:19:45 +03:00
```
go get -u github.com/tidwall/match
```
2020-11-03 20:47:25 +03:00
## Example
2016-08-30 17:19:45 +03:00
```go
match.Match("hello", "*llo")
match.Match("jello", "?ello")
match.Match("hello", "h*o")
```
2020-11-03 20:47:25 +03:00
## Contact
2016-08-30 17:19:45 +03:00
Josh Baker [@tidwall](http://twitter.com/tidwall)
2020-11-03 20:47:25 +03:00
## License
2016-08-30 17:19:45 +03:00
Redcon source code is available under the MIT [License](/LICENSE).