⚠ Migrate TwinProduction/gatus to TwiN/gatus
This commit is contained in:
1 parent
422eaa6d37
commit
6c45f5b99c
92 files changed
+293
-284
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