summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/pseudomuto/protokit/utils/strings.go
blob: 494121b6cc42ef69b209c96719077a6d84a1722c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
package utils

// InStringSlice returns whether or not the supplied value is in the slice
func InStringSlice(sl []string, val string) bool {
	for _, s := range sl {
		if s == val {
			return true
		}
	}

	return false
}