公共方法
This commit is contained in:
parent
1dc1070c65
commit
a81cf99a8e
@ -176,3 +176,11 @@ func RemoveRepeatedElement[T int | string | uint](arr []T) (newArr []T) {
|
||||
}
|
||||
return
|
||||
}
|
||||
func ArrRemove(strArray []string, s string) (newArr []string) {
|
||||
for _, element := range strArray {
|
||||
if !strings.Contains(element, s) {
|
||||
newArr = append(newArr, element)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user