MCPcopy Create free account
hub / github.com/astercloud/aster / removeString

Function removeString

pkg/security/access_control.go:1057–1065  ·  view source on GitHub ↗
(slice []string, item string)

Source from the content-addressed store, hash-verified

1055}
1056
1057func removeString(slice []string, item string) []string {
1058 result := make([]string, 0, len(slice))
1059 for _, s := range slice {
1060 if s != item {
1061 result = append(result, s)
1062 }
1063 }
1064 return result
1065}

Callers 1

RevokeRoleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected