MCPcopy Index your code
hub / github.com/FairwindsOps/pluto / StringInSlice

Function StringInSlice

pkg/api/helpers.go:35–37  ·  view source on GitHub ↗

StringInSlice returns true if the string is contained in the slice

(s string, slice []string)

Source from the content-addressed store, hash-verified

33
34// StringInSlice returns true if the string is contained in the slice
35func StringInSlice(s string, slice []string) bool {
36 return slices.Contains(slice, s)
37}

Callers 3

root.goFile · 0.92
Test_StringInSliceFunction · 0.85
FilterOutputMethod · 0.85

Calls

no outgoing calls

Tested by 1

Test_StringInSliceFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…