changed store.Store to accept generic key type

This commit is contained in:
Gani Georgiev committed 2024-12-23 15:44:00 +02:00
1 parent e18116d859
commit 39df26ee21
12 files changed
+57 -54

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/spf13/cast"
)
var cachedPatterns = store.New[*regexp.Regexp](nil)
var cachedPatterns = store.New[string, *regexp.Regexp](nil)
// SubtractSlice returns a new slice with only the "base" elements
// that don't exist in "subtract".