From a81cf99a8e8b765b89ab2d6c3cf3fe5641612b54 Mon Sep 17 00:00:00 2001 From: lingxin <961347548@qq.com> Date: Mon, 11 Aug 2025 16:50:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=85=B1=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lxutils.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lxutils.go b/lxutils.go index cd48cb7..97c3fdf 100644 --- a/lxutils.go +++ b/lxutils.go @@ -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 +}