MCPcopy Create free account
hub / github.com/BishopFox/cloudfox / removeStringFromSlice

Function removeStringFromSlice

aws/shared.go:182–189  ·  view source on GitHub ↗
(slice []string, element string)

Source from the content-addressed store, hash-verified

180}
181
182func removeStringFromSlice(slice []string, element string) []string {
183 for i, v := range slice {
184 if v == element {
185 return append(slice[:i], slice[i+1:]...)
186 }
187 }
188 return slice
189}

Callers 12

PrintLambdasMethod · 0.85
printECSTaskDataMethod · 0.85
PrintBucketsMethod · 0.85
EKSMethod · 0.85
printPrincipalTrustsMethod · 0.85
printServiceTrustsMethod · 0.85
printFederatedTrustsMethod · 0.85
PrintIamPrincipalsMethod · 0.85
PrintWorkloadsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected