aboutsummaryrefslogtreecommitdiff
path: root/internal/util/util.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--internal/util/util.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/util/util.go b/internal/util/util.go
new file mode 100644
index 0000000..c5472ab
--- /dev/null
+++ b/internal/util/util.go
@@ -0,0 +1,11 @@
+package util
+
+func StrContains(haystack []string, needle string) bool {
+ for _, s := range haystack {
+ if s == needle {
+ return true
+ }
+ }
+
+ return false
+}