File: README.md

package info (click to toggle)
golang-github-tidwall-match 1.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, forky, sid, trixie
  • size: 92 kB
  • sloc: makefile: 2
file content (29 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Match

[![GoDoc](https://godoc.org/github.com/tidwall/match?status.svg)](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

Redcon source code is available under the MIT [License](/LICENSE).