⚠ Migrate TwinProduction/gatus to TwiN/gatus

This commit is contained in:
TwiN committed 2021-10-07 21:28:04 -04:00
1 parent 422eaa6d37
commit 6c45f5b99c
92 files changed
+293 -284

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
}