#205: Work on supporting OpenID Connect for auth

This commit is contained in:
TwiN committed 2022-01-02 21:14:01 -05:00
1 parent 4ab5724fc1
commit be9087bee3
123 files changed
+27693 -49

No files matched your search

+12
View File
@@ -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
}