aboutsummaryrefslogtreecommitdiff
path: root/pkg/util/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/util/util.go')
-rw-r--r--pkg/util/util.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/util/util.go b/pkg/util/util.go
new file mode 100644
index 0000000..c5472ab
--- /dev/null
+++ b/pkg/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
+}