From 662152cb682dd0fc92f413660cb654127ce09739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Thu, 30 Mar 2023 16:26:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0in=E5=87=BD=E6=95=B0=E7=9A=84?= =?UTF-8?q?=E7=AE=80=E5=8C=96=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- array.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/array.go b/array.go index 0bfc59c..91c751b 100644 --- a/array.go +++ b/array.go @@ -67,3 +67,12 @@ func (a *array) In(search interface{}, source interface{}) int { } return -1 } + +// InAny In 函数的简化写法 +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 16:25 2023/3/30 +func (a *array) InAny(search interface{}, source ...interface{}) int { + return a.In(search, source) +}