#205: Work on supporting OpenID Connect for auth
This commit is contained in:
1 parent
4ab5724fc1
commit
be9087bee3
123 files changed
+27693
-49
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
package gocache
|
||||
|
||||
import "path/filepath"
|
||||
|
||||
// MatchPattern checks whether a string matches a pattern
|
||||
func MatchPattern(pattern, s string) bool {
|
||||
if pattern == "*" {
|
||||
return true
|
||||
}
|
||||
matched, _ := filepath.Match(pattern, s)
|
||||
return matched
|
||||
}
|
||||
Reference in new issue
Block a user