| 1 | package gocachescip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/ |
| 2 | |
| 3 | import "path/filepathscip-go gomod github.com/golang/go/src go1.24.4 `path/filepath`/" |
| 4 | |
| 5 | // MatchPattern checks whether a string matches a pattern |
| 6 | func MatchPatternscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/MatchPattern().(pattern, s string) bool { |
| 7 | if pattern == "*" { |
| 8 | return true |
| 9 | } |
| 10 | matched, _ := filepathscip-go gomod github.com/golang/go/src go1.24.4 `path/filepath`/.Matchscip-go gomod github.com/golang/go/src go1.24.4 `path/filepath`/Match().(pattern, s) |
| 11 | return matched |
| 12 | } |